It is currently August 25th, 2019, 7:16 pm

Relative Paths to launch apps

Help with creating, editing & fixing problems with skins
User avatar
sl23
Posts: 360
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Relative Paths to launch apps

sl23 » August 8th, 2019, 2:08 pm

I actually tried searching for this but only got web parser results.

I just wanted to know if RM supports Relative Paths or not?

RM is installed here:
D:\SyMenu\ProgramFiles\SPSSuite\SyMenuSuite\Rainmeter4_(x64)_sps

But I tried the traditional method of launching Waterfox using this:
LeftMouseUpAction=["..\MyApps\WaterfoxPortable\WaterfoxPortable.exe"]
Live for an ideal and leave no place in the mind for anything else
- MuLab - SoundCloud -
User avatar
jsmorley
Developer
Posts: 19379
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Relative Paths to launch apps

jsmorley » August 8th, 2019, 2:21 pm

sl23 wrote:
August 8th, 2019, 2:08 pm
I actually tried searching for this but only got web parser results.

I just wanted to know if RM supports Relative Paths or not?

RM is installed here:
D:\SyMenu\ProgramFiles\SPSSuite\SyMenuSuite\Rainmeter4_(x64)_sps

But I tried the traditional method of launching Waterfox using this:
LeftMouseUpAction=["..\MyApps\WaterfoxPortable\WaterfoxPortable.exe"]
Paths in Rainmeter will be relative to the skin .ini file they are executed from, not from the installation folder for the Rainmeter application.

So they are relative to #CURRENTPATH#.

You might want to use a more specific path:

LeftMouseUpAction=["#PROGRAMPATH#..\MyApps\WaterfoxPortable\WaterfoxPortable.exe"]


https://docs.rainmeter.net/manual/variables/built-in-variables/#PROGRAMPATH

This will start at #PROGRAMPATH# for Rainmeter, then march "up" (..) one level, and "down" into MyApps and so forth to find the executable.

This assumes, based on what you posted, that WaterfoxPortable.exe is at:

D:\SyMenu\ProgramFiles\SPSSuite\SyMenuSuite\MyApps\WaterfoxPortable\WaterfoxPortable.exe
User avatar
sl23
Posts: 360
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: Relative Paths to launch apps

sl23 » August 8th, 2019, 7:15 pm

There ya go with the Variables again! You just love 'em don'tcha? :p :lol:

Ta very much.

And just like to say a very big thank you for providing such an amazing, functional app and support for free for all these years! :thumbup: :thumbup: :thumbup:
Live for an ideal and leave no place in the mind for anything else
- MuLab - SoundCloud -