Monday, 19. January 2009, 17:20:01
Relative path or system variables for UserJS Path.
Hy.I've tried using system variables for all paths in opera6.ini file and it worked correctly for all except for the UserJS folder.
If i try something like :
User JavaScript File=%SystemDrive%\UserJSit just doesn't load the userscript files from "C:\UserJS", but all other variables that define paths seem to accept system variables (environment variables).
I also tried making the UserJS folder relative to the profile folder, but I didn't get anywhere with that either.
I've tried this :
User JavaScript File=.\UserJSand copied the UserJS folder in about every subfolder of Opera that i could think of, but it just doesn't want to work.
So, how could i make the UserJS folder either use a system variable or be relative to the opera profile path ?
Thanx in advance.
P.S. I've tried it both on Opera 10 alpha (b1229) and Opera 9.62 (b10467)
P.S.2 the UserJS folder contains scripts so that's not the problem, if i give it an absolute path it works.
Monday, 19. January 2009, 17:32:39
Well, i have a "portable office" on an USB stick and i have all kinds of programs there including Opera.
The problem is that the USB device doesn't have a fixed drive letter, it will change from computer to computer (and i don't have admin access to change the drive letter on every computer).
I know there is the PortableOpera or OperaUSB, but those have the exact same problem. I have to give an absolute path for the UserJS in order for it to work correctly.
The problem is that the USB device doesn't have a fixed drive letter, it will change from computer to computer (and i don't have admin access to change the drive letter on every computer).
I know there is the PortableOpera or OperaUSB, but those have the exact same problem. I have to give an absolute path for the UserJS in order for it to work correctly.
Monday, 19. January 2009, 17:46:51
Thanx Tamil for the idea
, it should work well (except if "subst.exe" is on the list of programs that you cannot run).
But i was looking for a more elegant way.
The method you've described is very good, but it has one small drawback, it will make a new drive appear in Explorer and it's also hard to find a drive letter that you're sure it's not already used.
I was hoping that since the other folders (for example the "Opera Directory" and "Opera Local Directory") support system variables that maybe the UserScript folder would too.
So, for now the only 2 alternatives are :
- to use a virtual drive letter with SUBST.EXE
- to modify the config file at each start to point in the right dirrection (either manually or with a script like how OperaUSB does)
But i was looking for a more elegant way.
The method you've described is very good, but it has one small drawback, it will make a new drive appear in Explorer and it's also hard to find a drive letter that you're sure it's not already used.
I was hoping that since the other folders (for example the "Opera Directory" and "Opera Local Directory") support system variables that maybe the UserScript folder would too.
So, for now the only 2 alternatives are :
- to use a virtual drive letter with SUBST.EXE
- to modify the config file at each start to point in the right dirrection (either manually or with a script like how OperaUSB does)
Forums » Opera Community » Opera desktop platforms » Opera for Windows
