stax76 / Flow.Launcher.Plugin.Favorites

Flow Launcher plugin to define favorite apps, files, folders and URLs.
MIT License
51 stars 3 forks source link

Support environment variables in Favorites.conf #3

Closed KyleKolander closed 2 years ago

KyleKolander commented 2 years ago

Could you please add support for environment variable expansion in Favorites.conf?

Any type of notation is fine, but it would be really helpful because I use multiple computers (home and work) and both share a common configuration repository. The use of environment variables allows for all of this to happen (i.e., same environment variable on each machine, but different values). FWIW, the USERPROFILE environment variable is the most important.

code = "%USERPROFILE%\scoop\apps\vscode\current\Code.exe"
code = "$env:USERPROFILE\scoop\apps\vscode\current\Code.exe"
code = "$USERPROFILE\scoop\apps\vscode\current\Code.exe"
stax76 commented 2 years ago

I can add support for environment variables, using the first variant. Hopefully within a week.

stax76 commented 2 years ago

The new version is now online.

KyleKolander commented 2 years ago

@stax76 - Thanks for doing that! I tried it out and it works. This may be due to me not understanding how to update Flow Launcher plugins, but I couldn't get it to update - actually had to uninstall it and then reinstall it to get your latest version. It would show there was a new version available, but then it would fail to update saying something about already having the same or newer version installed. It still says version 1.4.0 is installed. I'm guessing it's because the plugin.json file needs to have the version number increased from 1.4.0 to 1.5.0.

stax76 commented 2 years ago

Sorry, I missed updating the plugin.json file. I've re-uploaded it now with updated plugin.json file.

KyleKolander commented 2 years ago

No worries. That did the trick!