RPCS3 / rpcs3

PS3 emulator/debugger
https://rpcs3.net/
GNU General Public License v2.0
15.19k stars 1.89k forks source link

Regression: Application menu game shortcuts don't work anymore (#13008) #13047

Closed AniLeo closed 1 year ago

AniLeo commented 1 year ago

Last good version: 0.0.25-14432 First broken version: 0.0.25-14437 (#13008)

.desktop file on 0.0.25-14432

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Exec="/home/ani/Downloads/rpcs3-v0.0.25-14432-b0e376ae_linux64.AppImage" --no-gui "/home/ani/Games/BLES01227 - Asura's Wrath/PS3_GAME"
Name=ASURA'S WRATH
Categories=Application;Game
Comment=ASURA'S WRATH
Icon=/home/ani/.config/rpcs3/Icons/game_icons/BLES01227/shortcut.png

.desktop file afterwards

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Exec="/home/ani/rpcs3.AppImage" --no-gui "%RPCS3_GAMEID%:BLES01227"
Name=ASURA'S WRATH
Categories=Application;Game
Comment=ASURA'S WRATH
Icon=/home/ani/.config/rpcs3/Icons/game_icons/BLES01227/shortcut.png

When trying to open the icon:

error

Log file from trying to boot the broken icon:

RPCS3.log

System specifications

OS: Manjaro Linux x86_64 Kernel: 6.0.11-1-MANJARO Shell: zsh 5.9 DE: GNOME 43.1 WM: Mutter WM Theme: Adwaita Theme: Adwaita-dark [GTK2/3] Icons: Papirus-Dark [GTK2/3] Terminal: gnome-terminal

elad335 commented 1 year ago

what happens if you change the % into $ in the source code? or remove it completely?

AniLeo commented 1 year ago

If I run the command in the .desktop file directly from terminal, it doesn't weirdly escape anything, but I have this error instead:

"/home/ani/rpcs3.AppImage" --no-gui "%RPCS3_GAMEID%:BLES01227"
Debugger: 0
RPCS3: SYS: Game directory not found using GAMEID token. ('BLES01227')
RPCS3: Booting '%RPCS3_GAMEID%:BLES01227' failed!

Reason: Invalid file or folder
Found exec link: /tmp/.mount_rpcs3.pKsnhB/usr/bin/rpcs3

Removing the variable:

"/home/ani/rpcs3.AppImage" --no-gui "BLES01227"
Debugger: 0
RPCS3: Booting '/tmp/.mount_rpcs3.WQYyrM/usr/BLES01227' failed!

Reason: Invalid file or folder

Changing into $ doesn't work since that's for environment variables

The game is properly registered in games.yml, it shows up in the game list UI and can be ran properly from the emulator after all