Session management
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Session management




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Session management  
Antoninus Twink


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-28-07 06:22 PM

I am writing a program using GTK+ 2. I'd like to register it with KDE's
session manager, ksmserver, so that it will start up once KDE is
restarted. How should I do that?

Thanks!







[ Post a follow-up to this message ]



    Re: Session management  
Antoninus Twink


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-28-07 06:22 PM

To give more detail: a KDE/QT program when it starts would somehow
communicate with the session manager to arrange for it's state to be
saved and it would be restarted if the session was closed then reopened.

For a GTK+ 2 program, what is the right API to communicate with the
session manager?

In other words, how to turn this psuedocode into actual code?

if(running_under_kde == True)  // communicate with session manager
{
 provide_sm_with_save_state_callback(ss);
 // ss is a fnuction pointer
 provide_sm_with_load_state_callback(ls);
 // ls is a fnuction pointer
}

Thanks!



On 28 Jul 2007 at 15:23, Walter Roberson wrote:
> Antoninus Twink  <die.spammers@in.valid> wrote: 
>
> We don't know. If there is a KDE newsgroup or mailing list or web site,
> they would probably know there. GTK and KDE and session managers
> are not part of the C language, so we don't discuss them here.







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:14 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register