Hello so I been having this problem for 4 hours now trying to solve it but but no luck.Summary: The Exec part of the ".desktop file is not working, I did the "chmod +x" command. I tested it with "desktop-file-validate" command.
[Desktop Entry]Name=MO2 Fallout 4Comment= Mod Organizer 2Exec="STEAM_COMPAT_CLIENT_INSTALL_PATH='/home/ruben/.steam/steam' STEAM_CLIENT_INSTALL_PATH='/user/games/steam' STEAM_COMPAT_DATA_PATH='/home/ruben/.steam/debian-installation/steamapps/compatdata/377160/''/home/ruben/.steam/debian-installation/steamapps/common/Proton - Experimental/proton' run '/home/ruben/.steam/debian-installation/steamapps/compatdata/377160/pfx/drive_c/Modding/MO2/ModOrganizer.exe'"Icon=/home/ruben/.local/share/icons/MO2F4ICON.icoTerminal=falseType=ApplicationCategories=Game;
Note: When runing the code via Termial it works just fine.
STEAM_COMPAT_CLIENT_INSTALL_PATH='/home/ruben/.steam/steam' STEAM_CLIENT_INSTALL_PATH='/user/games/steam' STEAM_COMPAT_DATA_PATH='/home/ruben/.steam/debian-installation/steamapps/compatdata/377160/''/home/ruben/.steam/debian-installation/steamapps/common/Proton - Experimental/proton' run '/home/ruben/.steam/debian-installation/steamapps/compatdata/377160/pfx/drive_c/Modding/MO2/ModOrganizer.exe'
I have tried creating a script(.sh) as seen below and the script works via terminal but not via .desktop.
#!/bin/bash# Set environment variables (replace paths if necessary)export STEAM_COMPAT_CLIENT_INSTALL_PATH=~/.STEAM/STEAMexport STEAM_CLIENT_INSTALL_PATH=/user/games/steamexport STEAM_COMPAT_DATA_PATH=~/.steam/debian-installation/steamapps/compatdata/377160/~/.steam/debian-installation/steamapps/common/Proton\ -\ Experimental/proton run ~/.steam/debian-installation/steamapps/compatdata/377160/pfx/drive_c/Modding/MO2/ModOrganizer.exe
Update:.desktop to run the script.
[Desktop Entry]Name=MO2 Fallout 4Comment= Mod Organizer 2Exec=sh ./home/ruben/.local/share/applications/Scripts/MO2F4.shIcon=/home/ruben/.local/share/icons/MO2F4ICON.icoTerminal=falseType=ApplicationCategories=Game;
This is my first time asking a Question on askubuntu.com so if i miss some information i apologies.Note: When I use a script(.sh) the the Icon shows up in my Application but when i don't it does not show up.