Results 1 to 4 of 4

Thread: What KDE sends to running programs when logout?

  1. #1
    Join Date
    Jan 2006
    Location
    Shanghai, China
    Posts
    52
    Thanks
    3
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Unhappy What KDE sends to running programs when logout?

    I tried to catch it in my Qt program to make sure objects are correctly destructed
    But I tried SIGKILL SIGHUP SIGQUIT SIGTERM and SIGINT, but seems none of them is correct...

    Thanks
    1. Users don't have the manual, and if they did, they wouldn't read it.
    2. In fact, users can't read anything, and if they could, they wouldn't want to.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: What KDE sends to running programs when logout?


  3. #3
    Join Date
    Jan 2006
    Location
    Shanghai, China
    Posts
    52
    Thanks
    3
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: What KDE sends to running programs when logout?

    Quote Originally Posted by jacek View Post
    Thanks, this helps a lot.
    I reimplemented the QApplication::commitData function to save the data
    Now the program can correctly save the data when logout
    But the static object, which is used to make sure that there's only one instance of the program running, seems still not destroyed correctly.
    Any suggestion?
    1. Users don't have the manual, and if they did, they wouldn't read it.
    2. In fact, users can't read anything, and if they could, they wouldn't want to.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: What KDE sends to running programs when logout?

    There is a special signal sent by KApplication (see here). You might try QApplication::aboutToQuit() too.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.