protontricks icon indicating copy to clipboard operation
protontricks copied to clipboard

protontricks-launch fails but executing from Dolphin works

Open schradert opened this issue 1 year ago • 1 comments

Discussed in https://github.com/Matoking/protontricks/discussions/356

Converted this to an issue for better visibility.

Originally posted by schradert October 29, 2024 When I open my game launcher in Dolphin and hit execute, the protontricks GUI opens and I can select the Wine prefix for the non-Steam game this launcher is for, and the game opens without issue.

I expected the non-interactive version of this to be protontricks-launch --appid <appid> <exe>, but when I run that, I get a somewhat classic alert: This application failed to start because it could not find or load the Qt platform plugin "windows". This is the same error I get when running it through steam.

Any ideas what could be the cause of the difference, or how to investigate what that is, or even what might be the right fix?

I'm not sure if this is an issue with how I'm using protontricks either, but I thought I would start here in case anyone has seen this behavior before.

schradert avatar Oct 30 '24 09:10 schradert

My first guess would be that your shell environment variables are conflicting with GTK for some reason. Have you set something in ~/.bashrc (or other file such as ~/.zshrc, depending on your shell) that pertains to GTK? I checked and that file is not read when launching an application using the desktop environment's app launcher (at least in KDE Plasma).

Matoking avatar Nov 05 '24 17:11 Matoking