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
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.
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
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
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
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
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
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
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