Re: [PLUG] bash; anacron; wmctrl question

2018-02-07 Thread Denis Heidtmann
Well, the prize goes to Wes--adding before the wnctrl -k commands worked. Now when the script is launched by anacron the zenity test command minimizes all open windows and presents its dialog window. When that window closes, either due to a user response or time out for that window, the windows

Re: [PLUG] bash; anacron; wmctrl question

2018-02-06 Thread Denis Heidtmann
I have presently export DISPLAY=:0. I do not know what the : means, and why would you choose 1 rather than zero? Note that presently the window does appear, but the command wmctrl -k does not seem to do anything. I will be giving anacron an opportunity tomorrow with Wes' suggestion added.

Re: [PLUG] bash; anacron; wmctrl question

2018-02-06 Thread Denis Heidtmann
On the $DISPLAY variable, I thought that is what export DISPLAY=:0 was supposed to do. It must be doing something, since the zenity window does appear on my desktop. It is just that the wmctrl -k does not seem to work. I will be trying Wes' suggestion tomorrow when anacron gets another shot

Re: [PLUG] bash; anacron; wmctrl question

2018-02-06 Thread wes
yup. -wes On Tue, Feb 6, 2018 at 2:22 PM, Denis Heidtmann wrote: > You mean sudo -u household wmctrl...? > > -Denis > > On Tue, Feb 6, 2018 at 1:39 PM, wes wrote: > > > try sudo wmctrl, the same way you're doing sudo zenity. > > > > -wes > > > > On

Re: [PLUG] bash; anacron; wmctrl question

2018-02-06 Thread Denis Heidtmann
You mean sudo -u household wmctrl...? -Denis On Tue, Feb 6, 2018 at 1:39 PM, wes wrote: > try sudo wmctrl, the same way you're doing sudo zenity. > > -wes > > On Tue, Feb 6, 2018 at 1:27 PM, Denis Heidtmann > > wrote: > > > I have a script which

Re: [PLUG] bash; anacron; wmctrl question

2018-02-06 Thread Tomas Kuchta
Thinking little more about it - you might be able to get around the access permissions - to display stuff on other user's screens by using xhost command as part of user's default environment setup at login. That however is breaking the security - you can imagine how the desktop would look if

Re: [PLUG] bash; anacron; wmctrl question

2018-02-06 Thread Tomas Kuchta
I do not believe that you will be able to open graphical window using cron. The best you can hope for is sending notifications or emails. If you have the strength to continue with random experiments. Try: export DISPLAY :1 In your script before launching the window. Although that will likely be

Re: [PLUG] bash; anacron; wmctrl question

2018-02-06 Thread Ali Corbin
Another thing to try is to use the full path, in case the cron environment doesn't include $PATH On Tue, Feb 6, 2018 at 1:39 PM, wes wrote: > try sudo wmctrl, the same way you're doing sudo zenity. > > -wes > > On Tue, Feb 6, 2018 at 1:27 PM, Denis Heidtmann

Re: [PLUG] bash; anacron; wmctrl question

2018-02-06 Thread wes
try sudo wmctrl, the same way you're doing sudo zenity. -wes On Tue, Feb 6, 2018 at 1:27 PM, Denis Heidtmann wrote: > I have a script which runs daily via anacron. I want the script to launch > a zenity window to notify the user, so I issue the command wmctrl -k on