title: Minecraft custom launcher - forge mod load
body: <p>I'm trying to make a launcher for minecraft.</p>
  
  <p>When I launch it from workspace (in C:/users/hugo/workspace), everything work perfectly.</p>
  
  <p>But when I run the launcher from desktop, it try to load mods from ALL folders in the desktop. It create a "logs" folder in the desktop folder too.</p>
  
  <p>my launch command (without library load and after generation):</p>
  
  <pre><code>javaw -Xmx1024M -Xms1024M -XX:MaxPermSize=256M 
  -Djava.library.path=C:\Users\Hugo\AppData\Roaming\Survival-Machines\game1\natives
  -cp "C:\Users\Hugo\AppData...versions\1.7.10\1.7.10.jar;"
  net.minecraft.launchwrapper.Launch
  --tweakClass cpw.mods.fml.common.launcher.FMLTweaker
  --username Slaynash
  --version 1.7.10
  --gameDir C:\Users\Hugo\AppData\Roaming\Survival-Machines\game1\
  --assetsDir C:\Users\Hugo\AppData\Roaming\Survival-Machines\game1\assets
  --assetIndex 1.7.10
  --uuid 32********a3
  --userProperties {}
  --accessToken fa********cc
  </code></pre>
  
  <p>I launch it with java and function Runtime.getRuntime().exec(String cmd);</p>
  
  <p>Is my launch command bad, or have i forgot an argument ?</p>
  
  <p>Thanks for help,
  Hugo</p>
  
  <p>and sorry for my bad english :/</p>