This forum has been archived. All content is frozen. Please use KDE Discuss instead.

KDE 4, SuSE 11.2 - Session restart Glitch

Tags: None
(comma "," separated)
User avatar
anttikutoja
Registered Member
Posts
5
Karma
0
Hello all,

I have recently installed Skype which attaches itself to the system tray.

When I log in for a new session, I find that the video within Skype does not work. In order for it work ok, one has to add an "LD_PRELOAD..." line to the script "skype". That script in turn executes "skype-bin" which is the actual program.

If that procedure is followed, Skype video is fine.

It would appear that the session restore is bringing back the "skype-bin" rather than the "skype" script. I have to kill the one restored by the KDE and restart it via the menu or a shell.

Can you tell me where are the necessary details to restore a session stored and are they human-readable? At least, how can I find out what the KDE is using to execute Skype on the restore?

TIA.

Cheers - AK
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
KDE will be capturing this information from Skype itself. If you need Skype to start on login, I would recommend adding a link into ~/.kde4/Autostart to automatically start Skype correctly, and adding "skype-bin" to System Settings > Advanced > Session Manager.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
anttikutoja
Registered Member
Posts
5
Karma
0
Hi, thanks for that but...

skype-bin would be the wrong one, I need it to run the script instead. I could frig that but then I might well get into problems if/when an upgrade comes along.

What exactly do I put in "Autostart"? At the moment, it seems to be an empty directory.

Also, if you have time, what do you mean that the KDE is getting the info from skype itself?

Cheers - AK
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
KDE's Session Manager uses the "X Session Manager protocol" to allow it to instruct applications. Whilst I don't understand exactly how it works, KDE's Session Manager saves information provided by the applications, which includes details on how to restart them.

In order to exclude "skype-bin" from session management ( in order to allow the autostart of Skype to function ), open System Settings > Advanced > Session Manager, and add "skype-bin" to the list of exceptions ( which means that KDE's Session Manager will not automatically start Skype if you have it running when you log off )

Finally, open ~/.kde4/Autostart in Dolphin, then drag the launcher you use to run Skype normally into that folder and select "Copy".


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
anttikutoja
Registered Member
Posts
5
Karma
0
Aha!

Have just read up on the Session Manager protocol stuff and it becomes so much clearer now. I have also found where the info is stored. It's at ~/.kde4/share/config in the file ksmserverrc.

There would be absolutely no point in me editing that file since the info would probably be overwritten when skype runs again so I will follow exactly your instructions. I will have to wait for a bit until I can get to the box in question but will post back the results.

Thanks a million.

Cheers - AK
User avatar
anttikutoja
Registered Member
Posts
5
Karma
0
Yo!

Brilliant! I did exactly what you said. First re-login, it asked me if I trust to run the skype. I said yes.

Next re-login, no question and it is exactly what I needed. Thank you sir. >:D

Cheers - AK


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]