It is currently April 25th, 2024, 4:39 pm

Relative Paths to launch apps

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

Relative Paths to launch apps

Post by sl23 »

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"]
- MuLab -
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Relative Paths to launch apps

Post by jsmorley »

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: 1140
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: Relative Paths to launch apps

Post by sl23 »

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:
- MuLab -