Zenity Popup on logout

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help

Zenity Popup on logout

Postby drzoo2 on Sat Jan 15, 2011 1:08 pm

I am trying to create a Zenity dialog pop-up when a user logs out. I had this working on Ubuntu Jaunty but after switching to LMDE I can't seem to get it to work.

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.

Level 1
Level 1
Posts: 19
Joined: Fri Dec 24, 2010 11:13 am

Linux Mint is funded by ads and donations.

Return to Newbie Questions

Who is online

Users browsing this forum: No registered users and 6 guests