Skip to main content
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
Source Link

I want to run a script before I log out of my GNOME session, to warn myself if I have forgotten a pendrive plugged into the machine.

However, all solutions I have found have not been enough for me:

  • This similar questionThis similar question suggests editing the /etc/gdm/PostSession/Default file, but I don't have the permissions to do that. (And the file is currently empty on my machine, so there are no existing hooks to take advantage off)

  • I also found this post suggesting a workaround but, according to the first reply, it does not work if I shutdown the computer instead of only logging off.

I want to run a script before I log out of my GNOME session, to warn myself if I have forgotten a pendrive plugged into the machine.

However, all solutions I have found have not been enough for me:

  • This similar question suggests editing the /etc/gdm/PostSession/Default file, but I don't have the permissions to do that. (And the file is currently empty on my machine, so there are no existing hooks to take advantage off)

  • I also found this post suggesting a workaround but, according to the first reply, it does not work if I shutdown the computer instead of only logging off.

I want to run a script before I log out of my GNOME session, to warn myself if I have forgotten a pendrive plugged into the machine.

However, all solutions I have found have not been enough for me:

  • This similar question suggests editing the /etc/gdm/PostSession/Default file, but I don't have the permissions to do that. (And the file is currently empty on my machine, so there are no existing hooks to take advantage off)

  • I also found this post suggesting a workaround but, according to the first reply, it does not work if I shutdown the computer instead of only logging off.

Notice removed Draw attention by Gilles 'SO- stop being evil'
Bounty Ended with totti's answer chosen by Gilles 'SO- stop being evil'
Notice added Draw attention by Gilles 'SO- stop being evil'
Bounty Started worth 100 reputation by Gilles 'SO- stop being evil'
grammar and formatting tweaks
Source Link
Warren Young
  • 73.5k
  • 17
  • 182
  • 172

How can I run a script during GNOME logout if I don't have admin priviledgesprivileges?

I want to run a script before I log out of my GNOME session (to, to warn myself if I have forgotten a pendrive plugged oninto the machine).

However, all solutions I have found have not been enough for me:

This similar question suggests editing the /etc/gdm/PostSession/Default file, but I don't have the permissions to do that. (And the file is currently empty on my machine, so there are no existing hooks to take advantage off)

I also found this post suggesting a workaround but, according to the first reply, it does not work if I shutdown the computer instead of only logging off.

  • This similar question suggests editing the /etc/gdm/PostSession/Default file, but I don't have the permissions to do that. (And the file is currently empty on my machine, so there are no existing hooks to take advantage off)

  • I also found this post suggesting a workaround but, according to the first reply, it does not work if I shutdown the computer instead of only logging off.

How can I run a script during GNOME logout if I don't have admin priviledges?

I want to run a script before I log out of my GNOME session (to warn myself if I have forgotten a pendrive plugged on the machine).

However, all solutions I have found have not been enough for me:

This similar question suggests editing the /etc/gdm/PostSession/Default file, but I don't have the permissions to do that. (And the file is currently empty on my machine, so there are no existing hooks to take advantage off)

I also found this post suggesting a workaround but, according to the first reply, it does not work if I shutdown the computer instead of only logging off.

How can I run a script during GNOME logout if I don't have admin privileges?

I want to run a script before I log out of my GNOME session, to warn myself if I have forgotten a pendrive plugged into the machine.

However, all solutions I have found have not been enough for me:

  • This similar question suggests editing the /etc/gdm/PostSession/Default file, but I don't have the permissions to do that. (And the file is currently empty on my machine, so there are no existing hooks to take advantage off)

  • I also found this post suggesting a workaround but, according to the first reply, it does not work if I shutdown the computer instead of only logging off.

Tweeted twitter.com/#!/StackUnix/status/251516894060879873
Source Link
hugomg
  • 6.1k
  • 5
  • 43
  • 55

How can I run a script during GNOME logout if I don't have admin priviledges?

I want to run a script before I log out of my GNOME session (to warn myself if I have forgotten a pendrive plugged on the machine).

However, all solutions I have found have not been enough for me:

This similar question suggests editing the /etc/gdm/PostSession/Default file, but I don't have the permissions to do that. (And the file is currently empty on my machine, so there are no existing hooks to take advantage off)

I also found this post suggesting a workaround but, according to the first reply, it does not work if I shutdown the computer instead of only logging off.