You are not logged in.

#1 2022-08-18 19:12:40

spo0n
Member
Registered: 2022-05-13
Posts: 6

[Solved] Launching a web app with bemenu

I have created a web app trough epiphany and created a soft linked file of the .desktop executable in $PATHS, /usr/local/bin to be more specific. I can launch the web app there using a file manager and bemenu does find it but nothing happens when I try to open it.

basically all I did was run

sudo ln -s ~/.local/share/WebApp/webapp.desktop /usr/local/bin/webapp.desktop

Last edited by spo0n (2022-08-18 22:59:32)

Offline

#2 2022-08-18 19:35:14

dogknowsnx
Guest

Re: [Solved] Launching a web app with bemenu

'.desktop' files are not binaries (or executable, for that matter) - they simply contain an 'Exec' array which you can edit to your liking.

Last edited by dogknowsnx (2022-08-18 19:41:39)

#3 2022-08-18 20:21:30

spo0n
Member
Registered: 2022-05-13
Posts: 6

Re: [Solved] Launching a web app with bemenu

'.desktop' files are not binaries

this much I already knew and I guess I should've just said that running it launches the webapp. I assume it is really bad practice to just slap them in binary folder but doing that seemed like better idea than adding /usr/share/applications to $PATH which I take wouldn't be helpful.

if I understand correctly, what I want to do is to run the exec bit on .desktop file i.e.

epiphany --application-mode "--profile=/home/me/.local/share/WebApp" URL_of_the_webpage/

trough bemenu which I have no idea how to do

Offline

#4 2022-08-18 20:37:40

dogknowsnx
Guest

Re: [Solved] Launching a web app with bemenu

Simply wrap the above command in a script (your executable), create a '.desktop' file inside '~/.local/share/applications' and point it to the path of your executable (see link in my post above) in order to make it visible to application launchers.
If you also want your script to be "recognized" by your shell, then you'll have to make sure that the directory containing the script is in your $PATH.

Last edited by dogknowsnx (2022-08-18 21:14:23)

Board footer

Powered by FluxBB