You are here

Doubt about some code

7 posts / 0 new
Last post
SantoshV
Offline
Last seen: 14 years 3 weeks ago
Joined: 2010-10-16 17:38
Doubt about some code

I saw this code somewhere
[Launch]
CommandLineArguments=-appdatapath"%PAL:DataDir%"

So does the program assume Pal:DataDir to be applicationdata of the computer..

Simeon
Simeon's picture
Offline
Last seen: 10 years 2 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
No

%PAL:DataDir% is the AppnamePortable/Data/.
Its the data folder inside the main app folder.
PAL stands for PortableApps.com Launcher.

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

SantoshV
Offline
Last seen: 14 years 3 weeks ago
Joined: 2010-10-16 17:38
Correct me here.. for example

Correct me here..
for example let me take opera browser.. It writes its settings to %appdata%.. So when creating a launcher of t app,i put the mentioned above code.. So now does opera write settings to %PAL:DataDir% instead of %appdata% when t launcher is executed????

There is no substitute for experience...

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 1 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Config

Opera has a configuration option to write to a specific directory. Some apps do not. Those that do sometimes it is a config file (Opera), sometimes a commandline switch (VLC), sometimes an environment variable (FileZilla).

Sometimes, the impossible can become possible, if you're awesome!

Simeon
Simeon's picture
Offline
Last seen: 10 years 2 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
yes

Thats what opera does because it has , as John already said, a commandline switch to change the folder it puts its configuration files in.

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

SantoshV
Offline
Last seen: 14 years 3 weeks ago
Joined: 2010-10-16 17:38
Pls tel me about the other

Pls tel me about the other two.config and environmental variables... How do i find out if they are this type or other.. Using regshot or something else..

There is no substitute for experience...

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 1 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Read

You need to read the docs for the app, the FAQs for the app or the code for the app itself. Or ask the original app developers/publishers. You can't figure it out through use, regshot, etc.

Sometimes, the impossible can become possible, if you're awesome!

SantoshV
Offline
Last seen: 14 years 3 weeks ago
Joined: 2010-10-16 17:38
Now i understood a bit.. So

Now i understood a bit.. So if an app uses its settings from a config file use config/Commandline..

There is no substitute for experience...

Log in or register to post comments