linuxmint / webapp-manager

GNU General Public License v3.0
681 stars 89 forks source link

Launch app from command line #228

Open cactusbin opened 1 year ago

cactusbin commented 1 year ago

You should be able to launch an app from the command line. So for instance I have a facebook app, I want to create an alias that I can type "facebook" into a terminal or my launcher and it will run the corresponding app from webapp-manager.

imhemish commented 1 year ago

Sure this functionality is required in this app, until its not implemented you can do this:

First run ls ~/.local/share/applications/ | grep webapp in your terminal, you would see IDs of all the apps which you have installed. Then you can create alias for gtk-launch <id>
For example, in my case, the id of Discord webapp in my system is webapp-Discord5657.desktop, so i can just launch it with gtk-launch webapp-Discord5657.desktop or gtk-launch webapp-Discord5657

eightwt commented 6 months ago

This method doesn't always work for me. Instead, I grabbed the exec= line out of the .desktop files and pasted that (deleting the "exec=" part) into my launcher on Mint. I suppose you could also make an alias out of the line as well.