KDE Session Manager Drops Some Applications

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
User avatar
banjo
Level 2
Level 2
Posts: 65
Joined: Thu Jun 22, 2017 4:31 pm
Location: Reading, Massachusetts

KDE Session Manager Drops Some Applications

Post by banjo » Fri Feb 09, 2018 5:56 pm

I am having an intermittent problem with the restoration of sessions between logins. I have a mix of programs that I run all the time so I leave them up and let the Session Manager start them up when I log in. Most of the time that works fine, but on occasion, some of them fail to start.

Two of the programs were installed from the repositories, xeyes, and conky. Two of the programs I wrote myself. The ones that I wrote myself are not installed, I simply run the executables.

The session manager does not recognize the ones that I wrote, so I start them up with startup scripts installed using the System Settings=>Startup and Shutdown page. I have tried starting them up with Desktop Files and Script Files with the same results..... sometimes they do not start.

The programs that I installed from the repository are restarted by the Session Manager since that seems to restore them most of the time. If I put those into the System Settings => Startup and Shutdown page, they get started twice.... sometimes. So I just leave them running when I log out and the Session Manager starts them next time... usually.

Even though I am starting these four programs in two different ways, all of them suffer from random failures to start when I log in, which indicates that the problem is occurring in a generic part of the startup process.

Here is a brief description of my system:

Code: Select all

System:    Host: LinuxMain Kernel: 4.4.0-112-generic x86_64 (64 bit) Desktop: KDE Plasma 5.8.8
           Distro: Linux Mint 18.1 Serena
Machine:   System: ASUS product: All Series
           Mobo: ASUSTeK model: Z97-A-USB31 v: Rev 1.xx Bios: American Megatrends v: 2501 date: 06/24/2015
Graphics:  Card: NVIDIA GM107 [GeForce GTX 750 Ti]
           Display Server: X.Org 1.18.4 drivers: nvidia (unloaded: fbdev,vesa,nouveau)
           Resolution: 1920x1080@60.00hz, 1920x1080@60.00hz
           GLX Renderer: GeForce GTX 750 Ti/PCIe/SSE2 GLX Version: 4.5.0 NVIDIA 384.111
After one of these failures ,when conky failed to run, I grabbed ~/.config/ksmserverrc to see what it thought it was supposed to run:

Code: Select all

brian@LinuxMain ~/.config $ cat ksmserverrc
[General]
screenCount=1

[LegacySession: saved at previous logout]
clientMachine1=localhost
clientMachine2=localhost
command1=xeyes,-geometry,150x100-30+30
command2=/usr/bin/conky                                                                                                                      
count=2                                                                                                                                      
                                                                                                                                             
[Session: saved at previous logout]                                                                                                          
clientId1=10132b6cfde000151569558600000017210005                                                                                             
clientId2=10132b6cfde000151820233900000247630005                                                                                             
clientId3=10132b6cfde000149894469700000199170015                                                                                             
clientId4=10132b6cfde000150050398700000032010011
clientId5=10132b6cfde000151820234000000247630011
count=5
discardCommand1[$e]=rm,$HOME/.config/session/kwin_10132b6cfde000151569558600000017210005_1518204210_351965
program1=kwin_x11
program2=/usr/lib/x86_64-linux-gnu/libexec/kdeconnectd
program3=/usr/bin/gkrellm
program4=/usr/lib/x86_64-linux-gnu/libexec/org_kde_powerdevil
program5=pulseaudio
restartCommand1=kwin_x11,-session,10132b6cfde000151569558600000017210005_1518204210_351965
restartCommand2=/usr/lib/x86_64-linux-gnu/libexec/kdeconnectd,-session,10132b6cfde000151820233900000247630005_1518204210_326910
restartCommand3=/usr/bin/gkrellm,--sm-client-id,10132b6cfde000149894469700000199170015
restartCommand4=/usr/lib/x86_64-linux-gnu/libexec/org_kde_powerdevil,-session,10132b6cfde000150050398700000032010011_1518204210_327203
restartCommand5=
restartStyleHint1=0
restartStyleHint2=0
restartStyleHint3=0
restartStyleHint4=0
restartStyleHint5=0
userId1=brian
userId2=brian
userId3=brian
userId4=brian
userId5=brian
wasWm1=true
wasWm2=false
wasWm3=false
wasWm4=false
wasWm5=false
There is conky in the script along with xeyes. Yet xeyes ran, and conky did not.

Can someone point me to a description about how all this works or a log that I can look at to see how to trouble shoot this?

This is not a big deal since I just start the programs manually when they fail, but I would like to understand what is going on.

Thanks,
Banjo
(_)=='=~
If only the best bird sang, the forest would be a very quiet place.

Post Reply

Return to “Software & Applications”