Bug 375598 - "show a launcher" is broken for steam
Summary: "show a launcher" is broken for steam
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Icons-only Task Manager (show other bugs)
Version: 5.8.5
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-26 21:43 UTC by FabiB
Modified: 2017-02-13 16:52 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description FabiB 2017-01-26 21:43:40 UTC
1. start steam via menu
2. hover the icon in your taskmanager, rightclick, Show A Launcher When Not running 
3. Close steam (really close it!)
4. click on that launcher

It'll come up now this:

Unable to run the command specified. The file or folder /usr/share/applications/steam-valve.desktop does not exist.

the steam desktop file however is 
/usr/share/applications/steam.desktop

I have Tried to find a reason why the taskmanager creates a "link" to steam-valve.desktop but I can't find anything. Also for the steam xproperties there is nothing with the name "steam-valve". Inside the actual desktop file, there is also nothing with the name steam-valve. 

I also dont know if this is a bug in the KDE taskmanager or in steam. The workaround is easy -> rename the desktopfile. But it would be nice/better to find a reason why this happens in the first place.
Comment 1 Eike Hein 2017-01-26 23:47:32 UTC
I'll have a look what I can find ... things like this are usually "app is doing crazy stuff" and then we need to decide whether to support crazy stuff or yell at them :)
Comment 2 FabiB 2017-01-27 00:02:27 UTC
(In reply to Eike Hein from comment #1)
> support crazy stuff or yell at them :)
If it's not your fault yell at them ;) this is a so minimal bug and easy to workaround (or fix) that it's not worth to support it. :)

but thank you for looking at it!
Comment 3 Eike Hein 2017-01-27 12:17:17 UTC
Could you give me xprop output for your Steam window? On my system WM_CLASS is "Steam", which matches the .desktop file name.
Comment 4 FabiB 2017-01-27 12:21:34 UTC
It's the same here:

xprop
_NET_WM_ICON_GEOMETRY(CARDINAL) = 585, 1043, 68, 36
_KDE_NET_WM_ACTIVITIES(STRING) = "00000000-0000-0000-0000-000000000000"
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE
_NET_WM_DESKTOP(CARDINAL) = 0
WM_STATE(WM_STATE):
                window state: Normal
                icon window: 0x0
_NET_WM_STATE(ATOM) = 
_KDE_NET_WM_USER_CREATION_TIME(CARDINAL) = 584124
WM_NAME(UTF8_STRING) = "Steam"
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW
WM_HINTS(WM_HINTS):
                Client accepts input or input focus: True
_NET_WM_ICON(CARDINAL) =        Icon (48 x 48):
                          ░░▒▒▓▓▓▓▒▒░░                  
                       ░▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒░               
                     ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░             
                   ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░           
                  ▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒          
                ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░        
               ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░       
              ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░      
             ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒▒▒▒▓▓▓▓▓▓▓▓░     
             ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░    ░░▓▓▓▓▓▓▓     
            ▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒          ▒▓▓▓▓▓▒    
           ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░     ░░     ▒▓▓▓▓▓░   
           ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒   ░░▒▓▓▓░    ▒▓▓▓▓▓   
          ▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░  ░▒▓▒░░▒▓▒░  ░▓▓▓▓▓▒  
          ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░  ░▓▒░    ░▓▒   ▒▓▓▓▓▓  
         ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░  ░▓░      ░▓░  ░▓▓▓▓▓░ 
         ▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓   ▓▒        ▒▒  ░▓▓▓▓▓▒ 
         ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒  ░▓░        ░▓   ▓▓▓▓▓▓ 
        ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░  ░▓░        ░▓   ▓▓▓▓▓▓░
        ▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒    ▒▒        ▒▒  ░▓▓▓▓▓▓▒
        ▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░    ░▓░      ░▓░  ░▓▓▓▓▓▓▒
        ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░      ▒▓░    ░▓▒   ▒▓▓▓▓▓▓▒
        ░▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒        ▒▓▒▒▒▓▓▒   ░▓▓▓▓▓▓▓▓
           ░▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓          ░▒▒▒▒░    ▓▓▓▓▓▓▓▓▓
             ░▒▓▓▓▓▓▓▓▓▓▓▓░                   ▒▓▓▓▓▓▓▓▓▓
                ░▓▓▓▓▓▓▓▓▒                  ░▒▓▓▓▓▓▓▓▓▓▓
                  ░▒▓▓▒░░                ░░▒▓▓▓▓▓▓▓▓▓▓▓▒
                    ░                  ▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒
                       ░▒▓▒░         ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒
                         ░▒▓░       ▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░
                           ▒▓     ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 
         ▒▒░                ▓░   ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒ 
         ░▓▓▒░              ▒▒  ▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░ 
          ▒▓▓▓▒▒            ▒▒ ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒  
          ░▓▓▓▓▓▓▒          ▒░ ░▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░  
           ▒▒▒▒▒▒▓░        ░▓  ▒▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒   
           ░▒▒▒▒▒▓▒  ▒▒░ ░▒▓░ ░▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░   
            ▒▒▒▒▒▒▓░  ░▒▒▒▒░  ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒    
             ▒▒▒▒▒▒▒░        ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒     
             ░▒▒▒▒▒▒▒▒░   ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░     
              ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░      
               ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░       
                ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░        
                  ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒          
                   ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░           
                     ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░             
                       ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░               
                          ░░░▒▒▒▒▒▒░░░                  


_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x2, 0x0, 0x0, 0x0, 0x0
WM_CLASS(STRING) = "Steam", "Steam"
WM_NORMAL_HINTS(WM_SIZE_HINTS):
                user specified location: 479, 329
                user specified size: 1000 by 660
                program specified minimum size: 900 by 600

thats why I think it's strange that, when you pin it to the taskmanager it tries to find steam-valve.desktop
Comment 5 Eike Hein 2017-01-28 18:30:47 UTC
Yep, indeed ... could you pin it again and give me the output of your $HOME/.config/plasma-org.kde.plasma.desktop-appletsrc?
Comment 6 FabiB 2017-01-29 00:14:04 UTC
(In reply to Eike Hein from comment #5)
> Yep, indeed ... could you pin it again and give me the output of your
> $HOME/.config/plasma-org.kde.plasma.desktop-appletsrc?

https://paste.kde.org/px0lqeg4b

also here it's: [...] ,file:///usr/share/applications/steam-valve.desktop? [...]

but

% file /usr/share/applications/steam-valve.desktop                                              :(
/usr/share/applications/steam-valve.desktop: cannot open `/usr/share/applications/steam-valve.desktop' (No such file or directory)
Comment 7 Kai Uwe Broulik 2017-01-29 19:28:56 UTC
fwiw I cannot reproduce the issue here, here it properly stores the launcher as file:///usr/share/applications/steam.desktop

I also searched my entire hard drive and there is no such file (neither in ~/.local/share/applications, nor in the Steam install dir, nor anywhere else)
Comment 8 Eike Hein 2017-02-07 11:09:17 UTC
Can't reproduce it either (Fedora 25, Steam from rpmfusion) ...
Comment 9 Eike Hein 2017-02-13 10:44:06 UTC
Closing for now until we get more info.
Comment 10 FabiB 2017-02-13 16:52:56 UTC
It somehow only appeas on old installations. Fresh installed OS -> steam works, no steam-valve

old installation + new user -> also works

old installation + old user -> dont works

rm -rf ~/.steam* ~/.local/share/Steam* ~/Schreibtisch/steam.desktop

dont change anything

rm ~/.config/taskmanagerrulesrc

did the job!
For some reson in this file there was:

[Mapping]
::=file:///usr/share/applications/net.pokemon-revolution-online.desktop
Steam::Steam=file:///usr/share/applications/steam-valve.desktop

the last line is on all of my 3 systems with an /home creation date of end 2015 or older. I dont know what kind of action can write this in but there should be a check if this actually still works, because it was a real PITA for me to find out. after deletetion I can create a working launcher.