 |
 |
 |
 |
|
 |
 |
Help
| Author |
Message |
|
larsene
|
|
Post:
Feb 21st 2008 at 3:45 PM |
|
|
Hi all,
I would like to get tuxguitar on my usb-key.
So i've installed the software on the pc (windows), i made à copy of the c:/progra~1/tuxguitar directory to my usb-key, and i uninstall again the software.
When i lauched tuxguitar from the key, everything goes fine, except that the config directory is created on the hard disk drive :(
Is there à way to move the location of this directory (.tuxguitar) to my key too?
Thanks.
|
|
| Back to Top |
| |
|
Julian
|
|
Post:
Feb 21st 2008 at 4:27 PM |
|
|
Hello,
You can do that with the enviroment var: TUXGUITAR_CONFIG_HOME
You can edit the tuxguitar.bat file, and export that var fefore the java cmd line.
I don't exactly remember how do that under win32 ( but is possible )
As example, under GNU/Linux you can do:
export TUXGUITAR_CONFIG_HOME=YourNewConfigFolder
Under win32, it was something like:
set TUXGUITAR_CONFIG_HOME=YourNewConfigFolder
You can test that on a symbol system console..
and you can see if the var is correctly setted doing:
echo %TUXGUITAR_CONFIG_HOME%
Well, that was for run the tuxguitar.bat file.
For the exe file ( generated by the janel project ) , i don't know if it's possible set env bars.
But you can change the "user.home" java property.
TuxGuitar take: user.home + "/.tuxguitar" as user config folder.
So you can edit the .exe configuration file called "tuxguitar.lap" with a wordpad, and add on the first line:
-Duser.home=MyFolder
then, when you make 2 clicks to the .exe, your config folder must be maded on MyFolder/.tuxguitar/
|
|
| Back to Top |
| |
|
Anonymous
|
|
Post:
Feb 22nd 2008 at 4:48 AM |
|
|
Thank you, it works!
For the bat file, I launch if with the directory as first parameter. So I added in the bat file:
########################################
cd %1
set TUXGUITAR_CONFIG_HOME=%1%.tuxguitar
echo %TUXGUITAR_CONFIG_HOME%
########################################
(there is no parameter used in tuxguitar?)
For the exe file, i simply added like you said:
###############################
-Duser.home=H:/Apps/tuxguitar
###############################
at the end of the tuxguitar.lap
Is it possible to use a var in this file, like i've done in the batch file, because, as the software is on a usb-key, the directory may not be the same on every computer...
(usb-key is not mounted on the same drive)
(I put tuxguitar onto a framalauncher (see http://www.framakey.org/Firefox/Accueil), and it launch tuxguitar with a line like:
"%AeTrayMenuPath%....Appstuxguitartuxguitar.bat %AeTrayMenuPath%....Appstuxguitar")
Thanks,
Larsene
|
|
| Back to Top |
| |
|
Julian
|
|
Post:
Feb 22nd 2008 at 7:03 AM |
|
|
Hi,
i think, you don't need add the full path.
e.g: H:/Apps/tuxguitar/AnyFolder can be replaced by "AnyFolder"
when you run the .exe file ( or the .bat ) the folder where the launcher is, is the default path under windows ( as i remember )
I mean, if the .exe is on: "C:/lalala/test.exe"
and that exe make a new folder "MyFolder" ( without set the full path ), the folder will be created at "C:/lalala/MyFolder"
So i think you can try set
-Duser.home=MyUserHome
and the config will be created on
H:/Apps/tuxguitar/MyUserHome/.tuxguitar
|
|
| Back to Top |
| |
|
Anonymous
|
|
Post:
Aug 11th 2008 at 3:00 PM |
|
|
|
Actually, you have to, as when you move the thumb drive across multiple computers, the drive letter changes. For example, if you moved it to my computer, it would be L:, not H:.
|
|
| Back to Top |
| |
|
cheap watch
|
| | |