Xfce Forum

Sub domains
 

You are not logged in.

#1 2011-03-24 18:56:14

bradleesand
Member
From: California
Registered: 2011-03-24
Posts: 3

[Solved] Session manager will not restore my app on reboot

I have GUI interface that I wrote in C with the GTK library. I want it to launch whenever I turn on the computer. I can't figure out how to do this. If I have both my app and Terminal open and I reboot, Terminal will be open after reboot but my app will not. Is there something special that I have to do with my app to have it register with the session manager or something? It just seems to me that there must be something special about the applications that are already installed on this machine. Slackware 13.

Offline

#2 2011-03-24 21:43:05

Hezy
Member
From: Israel
Registered: 2008-10-13
Posts: 27
Website

Re: [Solved] Session manager will not restore my app on reboot

You can add you application to the autostart list here:
Menu -> Settings -> Session and Startup -> Application Autostart

Or you can manually create a launcher in /home/username/.config/autostart/


keep on rockin' in the free world

Offline

#3 2011-03-24 21:56:13

bradleesand
Member
From: California
Registered: 2011-03-24
Posts: 3

Re: [Solved] Session manager will not restore my app on reboot

Ok, but I want to be able to move it around and have it start in the position that I left it.

Offline

#4 2011-03-25 06:47:02

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,144
Website

Re: [Solved] Session manager will not restore my app on reboot

You need to implement a session manager client in your application, for example xfce-sm-client. That will give you a unique client-id so the window manager can restore the window state on login.

Offline

#5 2011-03-25 17:06:18

bradleesand
Member
From: California
Registered: 2011-03-24
Posts: 3

Re: [Solved] Session manager will not restore my app on reboot

Thank you. That's exactly what I was looking for.

Offline

Board footer

Powered by FluxBB