I'm using /etc/gdm3/PostSessions/Default and adding a line to run a script.
This works fine and when logging out the script is called but I'm not seeing the pop-up.
Here is my test case for the popup and a dummy action.
- Code: Select all
DISPLAY=:0 XAUTHORITY=/home/scott/.Xauthority sudo -u scott zenity --info --text="Please Wait. Backup in Progress." &
touch /home/scott/Desktop/test
When ran from terminal I get the following.
- Code: Select all
scott@linux-main:~$ ./.rsync_home
No protocol specified
(zenity:14023): Gtk-WARNING **: cannot open display: :0
Something change in the x-server that is causing this or is it my Authority file in my home directory?
Now honestly I wrote this a few years ago so I don't recall how I came to the parameters I did. Lots of research.
Scott

