Environment variable in Plugins configuration

We welcome any suggestions for new features or improvements in Altap Salamander. Please post one suggestion per report.
EvaEden~

Environment variable in Plugins configuration

Post by EvaEden~ »

Hi,

please allow also in plugins configuration settings with environment variables. Thanks, ~Eva

[HKEY_CURRENT_USER\Software\Altap\Altap Salamander 2.52 beta 1\Editors\1]
"Command"="$[ProgramFiles]\\UltraEdit\\Uedit32.exe" :)

[HKEY_CURRENT_USER\Software\Altap\Altap Salamander 2.52 beta 1\Plugins Configuration\Renamer]
"Command"="C:\\Program Files\\UltraEdit\\Uedit32.exe" :(
EvaEden~

Environment variable in Plugins configuration

Post by EvaEden~ »

... a little problem more:

In earlier AS versions I don't need quotation marks using variables and let it execute through shell in the user dir configuration ("$(SalDir)\NS.bat"). Now, without quotation marks the command won't be executed...
User avatar
Ether
Posts: 1471
Joined: 10 May 2007, 16:08
Location: Czech Republic
Contact:

Environment variable in Plugins configuration

Post by Ether »

EvaEden~ wrote:In earlier AS versions I don't need quotation marks using variables and let it execute through shell in the user dir configuration ("$(SalDir)\NS.bat"). Now, without quotation marks the command won't be executed...
Try unchecking the Execute through shell option.
Ελληνικά rulez.
EvaEden~

Environment variable in Plugins configuration

Post by EvaEden~ »

Hi Ether,

thanks very much, but then a cmd shell appears. I want to run my batch files hidden. At the moment the usage of quotation marks is the only workaround.
I wrote this because maybe an error has creeped in the new version...
User avatar
Ether
Posts: 1471
Joined: 10 May 2007, 16:08
Location: Czech Republic
Contact:

Post by Ether »

I don't think so, v2.51 behaves the same. Could you tell me, which Salamander version worked for you without quote marks? Have you changed the Salamander program directory ($(SalDir)) since then?
Ελληνικά rulez.
EvaEden~

Environment variable in Plugins configuration

Post by EvaEden~ »

Hi Ether,

it works only before version 2.51. With 2.51 and later I've the described problem...

Thanks for your effort!
User avatar
Ether
Posts: 1471
Joined: 10 May 2007, 16:08
Location: Czech Republic
Contact:

Post by Ether »

I'm sorry, but I can't get it to work without quotes even with AS v2.5, and SS v2.0 seems to not support variables in the command path. Could you post some example and a step-by-step guide to reproduce the problem?
Ελληνικά rulez.
EvaEden~

Environment variable in Plugins configuration

Post by EvaEden~ »

Hi Ether,

I beg your pardon! :oops:
I've reproduced it also with AS2.5 and SS2.0 and it was the same behavior. It was my mistake! I've seen with a batch without the option "Execute through shell" no quotes are necessary, but within a shell this is not working. So there is a (small) distinction in the manner of acting...

Thanks very much for your help!!!


But nevertheless I've still the feature request of using environment variables. (In configuration and also in using explorer actions: copying etc. like Jesper Hertel describes in his posting.)
Jan Rysavy
ALTAP Staff
ALTAP Staff
Posts: 5231
Joined: 08 Dec 2005, 06:34
Location: Novy Bor, Czech Republic
Contact:

Post by Jan Rysavy »

EvaEden~ wrote:But nevertheless I've still the feature request of using environment variables.
It will be supported from Altap Salamander 2.52 beta 2. Thank you for this idea!
User avatar
Ether
Posts: 1471
Joined: 10 May 2007, 16:08
Location: Czech Republic
Contact:

Post by Ether »

Little off topic: There are other places where the possibility of using environment variables was requested (Hot Paths, Change Directory, Copy, Move, ...). Will it be implemented there, too?
Ελληνικά rulez.
Jan Rysavy
ALTAP Staff
ALTAP Staff
Posts: 5231
Joined: 08 Dec 2005, 06:34
Location: Novy Bor, Czech Republic
Contact:

Environment variable in Plugins configuration

Post by Jan Rysavy »

Maybe we will find the time someday.

This was relatively small patch (Registry Editor and Renamer plugins only) and I only synchronized their configuration dialog boxes with existing (User Menu) in Salamander for better portability.

Edit: "Winndows" -- old typo, I will fix it.
Attachments
command.png
command.png (22.87 KiB) Viewed 11937 times
EvaEden~

Re: Environment variable in Plugins configuration

Post by EvaEden~ »

Hi Jan,

please do it also in User Menu | Change Icon:

Icon REG_SZ C:\\WINNT\\system32\\sndrec32.exe,0
Initial Directory REG_SZ $(WinDir)\\system32

Poss. in Hot Paths (e.g. %ProgramFiles%) too...

TIA, Eva
User avatar
vld
Posts: 174
Joined: 06 Feb 2009, 21:21

Re: Environment variable in Plugins configuration

Post by vld »

EDIT by Jan Rysavy

http://tinyurl.com/pj9pj3
Last edited by Jan Rysavy on 24 May 2009, 19:46, edited 2 times in total.
Reason: SPAM removed
User avatar
zarevak
Plugin Developer
Plugin Developer
Posts: 789
Joined: 04 Feb 2006, 16:49
Location: Prague, Czech Republic

Re: Environment variable in Plugins configuration

Post by zarevak »

I suspect the last post being some sort of spam bot test :(

The exact same sentences can be found on other websites having "Environment" in their title... (I don't wan to link them. You can use Google: put the last sentence in quotes to search for it.)
Post Reply