Mullvad-browser.desktop icon works in applications folder, but not from quicklaunch or menu

I am running Leap 15.4 with LXQT.

Just installed the Mullvad browser. The application works fine. It works when selecting the “start-mullvad-broswer.desktop” from the folder it was extracted to, and that .desktop file copied on the desktop, and in the ~/.local/share/applications/ folder.
The icon is visible in the menu>internet as well as then placed in the quicklaunch toolbar, but will not execute from either. Is there a setting that needs to change?

thanks

Did you try to log out and in since you created the .desktop file?

Can you show the content of your .desktop file?
Did you try putting it in /usr/share/applications/ instead? Just for testing, that’s usually used for apps that are available to all users. Your folder should technically work as well, just for your user.

I just created .desktop files recently for a different application. One time in openSUSE with Gnome, one time on Arch with LXQt. Both worked the same way flawless. The difference to your setup is that I put it in /usr/share/applications.

Edit: Usually I think the .desktop files wouldn’t need the executable bit set. But if everything else looks good, you can try and set it with chmod +x

is that /usr/share/applications/ ?

Could be the folder it was extracted is not in your path, one reason the launcher can’t open it.

where is the path file located and what is the appropriate way to edit it?

404,
Yes the .desktop file is in /usr/share/applications/
Yes I have rebooted since then

Here is the content:

[Desktop Entry]
Type=Application
Name=Mullvad Browser
GenericName=Web Browser
Comment=Mullvad Browser is +1 for privacy and −1 for mass surveillance
Categories=Network;WebBrowser;Security;
Exec=sh -c ‘“/data2/Downloads/Mullvad/mullvad-browser/Browser/start-mullvad-browser” --detach || ([ ! -x “/data2/Downloads/Mullvad/mullvad-browser/Browser/start-mullvad-browser” ] && “$(dirname “$*”)”/Browser/start-mullvad-browser --detach)’ dummy %k
X-MullvadBrowser-ExecShell=./Browser/start-mullvad-browser --detach
Icon=/data2/Downloads/Mullvad/mullvad-browser/Browser/browser/chrome/icons/default/default128.png
StartupWMClass=Mullvad Browser

Hey,
if the .desktop-file is in /usr/share/applications/, you can delete the copy in ~/.local/share/applications/. I don’t know how this double .desktop-file is handled by LXQt. You should still be able to see it in the start menu as /usr/share/applications/ is read.

This whole thing is supposed to detect the correct path by itself and launch the script.

If you know the path and if your browser lunches when you just run the script from a terminal by
/path/to/start-mullvad-browser
you could try and simplify the .desktop file with root privileges to:

[Desktop Entry]
Type=Application
Name=Mullvad Browser
GenericName=Web Browser
Comment=Mullvad Browser is +1 for privacy and −1 for mass surveillance
Categories=Network;WebBrowser;Security;
Exec=/path/to/start-mullvad-browser %u
Icon=/data2/Downloads/Mullvad/mullvad-browser/Browser/browser/chrome/icons/default/default128.png
StartupWMClass=Mullvad Browser

I probably don’t need to mention it, but where I wrote /path/to/start-mullvad-browser you of course have to fill in the actual path to the script.

To see your PATH:

echo $PATH

Example is I am using blender .tar.xz where I extracted it in some folder.
If I want a launcher for blender kinda quick fix, under the command to launch blender I have to put the whole path to where the blender was extracted to make it work. This is good if you are not going to use the application on a full time basis. If you decide that this application is not right for you just delete the application and the launcher and you are done.

If the application you you will be using full time then better to export PATH so you will not have a problem launching it from your launcher or in the terminal. In terminal you just type the name of the application and it will open. I am not an expert with this because I am not a programmer but this is how I observe using linux in years.

So if you want to put your application in your path permanently
You can put it in your /home/user/.bashrc like so:

export PATH=" /path/to/your/application: $PATH"

Conram and 404, thank you both for your help. It has been a busy week. I plan on working through this more, and will respond soon. Thanks again.