View Single Post
Old 01-25-2012, 08:27 AM   #101
kintrupf
Member
kintrupf began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Jan 2012
Location: Germany
Device: Energy Sistem eReader Pro (Boyue T62)
Possible to support environment variables on Windows?

Hi,

I have a curious little problem with the Open With plugin. I share the configuration of my calibre installation via DropBox on two Windows computers which generally works fine so far.

The only problem is that on one computer all applications (like Sigil) are installed in subfolders of "C:\Program Files" while on the other they reside in "C:\Programme".
So each time I adjust the configuration of the Open With Plugin on one computer it wont work on the other and vice versa.

However, thery might be an easy solution. On every Windows installation there is always an environment variable named "programfiles" which points to the correct folder. Would it be possible to launch something like "C:\%programfiles%\Sigil\sigil.exe" from the Plugin? Just before launching the app you would need to replace %programfiles% with the value from the environment variable.
kintrupf is offline   Reply With Quote