Displaying 2 results from an estimated 2 matches for "sessionremoved".
2020 Feb 05
2
[fdo] Detect my own session being closed
...s it possible to mark a mounted partition as "umount on session
close"?
- If not, is it possible to detect when my session is being closed, to make
the backup program to umount the partition, thus allowing other users to
use it?
About this last question: I already tried to connect to the SessionRemoved
signal from logind, but with no luck: I receive the signal when other users
close their session, but my program is killed before it can process the
signal. Also I tried to use onexit(), atexit(), and GApplication's close
signals, but also with no luck: the code isn't called (I'm using...
2020 Feb 06
2
[fdo] Detect my own session being closed
...on
> session close"?
> - If not, is it possible to detect when my session is being
> closed, to make the backup program to umount the partition, thus
> allowing other users to use it?
>
> About this last question: I already tried to connect to the
> SessionRemoved signal from logind, but with no luck: I receive the
> signal when other users close their session, but my program is
> killed before it can process the signal. Also I tried to use
> onexit(), atexit(), and GApplication's close signals, but also
> with no luck: the co...