current way to show pop-up windows in other users sessions?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings,

it's been a looong, long time since the last time I did this, so I
need a bit of help to refresh my memory. In a sense, what I'm unable
to remember right now is what docs I should read...

I have a cron shell script that, if some event happens, must:

1) check if a *local* user A is currently logged in, and in which
   session/display

2) if yes, pop up a window in the session of user A, showing the
   content of a text file

I know how to do (1) with "who":

[marco@polaris ~]$ who
bill    :2           2013-09-10 19:56

this tells me that "bill" (i.e. NOT me, another user!!!) **is**
currently logged in on display :0

and I also know how to do (2) with kdialog, zenity, xmessage...

but of course, if I launch kdialog I get nothing but the "Error: can't
open display" message. Setting DISPLAY to ":2", "ip.address:2",
":2.0"... doesn't change anything.

(many) years ago this was solved with xhost +, but not now. So, what
is the current way to make (2) happen? Possibly one that is
distribution-agnostic?

TIA,
	Marco
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux