From: Svjatoslav Agejenko Date: Sun, 24 Feb 2013 13:45:32 +0000 (+0200) Subject: fix for latest ubuntu that mounts inserted disks at X-Git-Tag: meviz-1.0~87 X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=512eb322715ca1c626517b0124926729310e7b2e;p=meviz.git fix for latest ubuntu that mounts inserted disks at /media// --- diff --git a/pom.xml b/pom.xml index 6723d61..6a00912 100755 --- a/pom.xml +++ b/pom.xml @@ -1,138 +1,143 @@ - - 4.0.0 - eu.svjatoslav - meviz - 1.0-SNAPSHOT - jar - meviz - media wizard - - - svjatoslav.eu - http://svjatoslav.eu - - - - - eu.svjatoslav - svjatoslavcommons - 1.0-SNAPSHOT - - - - log4j - log4j - 1.2.16 - - - - - - - - maven-assembly-plugin - - - - eu.svjatoslav.meviz.Main - - - - jar-with-dependencies - - - - - - - package-jar-with-dependencies - package - - single - - - false - - jar-with-dependencies - - - - eu.svjatoslav.meviz.Main - - - - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 2.3.2 - - 1.6 - 1.6 - - - - - org.apache.maven.plugins - maven-source-plugin - 2.2.1 - - - attach-sources - - jar - - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.9 - - - attach-javadocs - - jar - - - - - - - - - - org.apache.maven.wagon - wagon-ssh - 2.2 - - - - - - - - svjatoslav.eu - svjatoslav.eu - scp://svjatoslav.eu:7022/var/www/maven - - - - - - svjatoslav.eu - Svjatoslav repository - http://www2.svjatoslav.eu/maven/ - - + + 4.0.0 + eu.svjatoslav + meviz + 1.0-SNAPSHOT + jar + meviz + media wizard + + + svjatoslav.eu + http://svjatoslav.eu + + + + + eu.svjatoslav + svjatoslavcommons + 1.0-SNAPSHOT + + + + log4j + log4j + 1.2.16 + + + + + + + + maven-assembly-plugin + + + + eu.svjatoslav.meviz.Main + + + + jar-with-dependencies + + + + + + + package-jar-with-dependencies + package + + single + + + false + + jar-with-dependencies + + + + eu.svjatoslav.meviz.Main + + + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 2.3.2 + + 1.6 + 1.6 + + + + + org.apache.maven.plugins + maven-source-plugin + 2.2.1 + + + attach-sources + + jar + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.9 + + + attach-javadocs + + jar + + + + + + + + + + org.apache.maven.wagon + wagon-ssh + 2.2 + + + + + + + + svjatoslav.eu + svjatoslav.eu + scp://svjatoslav.eu:7022/var/www/maven + + + + + + svjatoslav.eu + Svjatoslav repository + http://www2.svjatoslav.eu/maven/ + + + true + + + true + + + diff --git a/src/main/java/eu/svjatoslav/meviz/grabmemcard/Main.java b/src/main/java/eu/svjatoslav/meviz/grabmemcard/Main.java index d7f866e..cb3406a 100755 --- a/src/main/java/eu/svjatoslav/meviz/grabmemcard/Main.java +++ b/src/main/java/eu/svjatoslav/meviz/grabmemcard/Main.java @@ -88,7 +88,9 @@ public class Main implements Module { final Converter converter = new Mts2Mp4(); final EncodingPlan encodingPlan = new EncodingPlan(); - final File file = new File("/media"); + final String userName = System.getProperty("user.name"); + + final File file = new File("/media/" + userName + "/"); for (final File insertedDisk : file.listFiles()) { final File[] diskVideos = getDiskVideos(insertedDisk);