Bug 751355 - notify-send no longer works when executed remotely via SSH
Summary: notify-send no longer works when executed remotely via SSH
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: libnotify
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Zeuthen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 915346
TreeView+ depends on / blocked
 
Reported: 2011-11-04 13:43 UTC by Jan Pokorný [poki]
Modified: 2013-03-06 04:08 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 915346 (view as bug list)
Environment:
Last Closed: 2011-11-14 13:19:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jan Pokorný [poki] 2011-11-04 13:43:49 UTC
My use-case of notify-send is detailed in bug 693207 comment 8.

Apart from the problem of "cluttering up" notification panel, it used
to work well on both Fedora 15 and Fedora 16.  But quite recently (after
some update I think), I am not able to use notify-send over SSH any more.

I used to use a command like this:
---
ssh $HOST 'DISPLAY=:0 notify-send test'
---

Even setting XAUTHORITY environment variable as is set normally on the target
machine will not help:
---
ssh $HOST 'XAUTHORITY=/var/run/gdm/auth-for-jpokorny-DNDX2Q/database
           DISPLAY=:0 notify-send test'
---

I have no idea what has changed that notify-send command executed over SSH
is no longer working.  I will be pleased to provide further details and will
appreaciate any proposed workarounds.


$ rpm -qf $(which notify-send)
libnotify-0.7.4-1.fc16.x86_64

Comment 1 Stanislav Graf 2011-11-12 21:47:27 UTC
I used your command:
ssh $HOST 'DISPLAY=:0 notify-send test'

and successfully sent messages between two VMs. One was Fedora 15, second Fedora 16. Message sent to F15 and to F16 as well.

libnotify-0.7.2-1.fc15.x86_64
libnotify-0.7.4-1.fc16.x86_64

I was in gnome-shell fallback mode.

Then I tried sent message from VM to my host Fedora 16 with normal gnome-shell and it successfully arrived too.

Try to verify your libnotify installation by:
$ rpm -V libnotify; echo $?
0

Comment 2 Jan Pokorný [poki] 2011-11-14 13:19:54 UTC
That checking command gives me:

> prelink: /usr/bin/notify-send:
>     at least one of file's dependencies has changed since prelinking
> ?S.......    /usr/bin/notify-send
> prelink: /usr/lib64/libnotify.so.4.0.0:
>     at least one of file's dependencies has changed since prelinking
> ?S.......    /usr/lib64/libnotify.so.4.0.0
> 1


Anyway, it all works for me again (leading to CLOSED if nobody resists).


I wonder if this was a PEBKAC case or the issue was present shortly and then
disappeared when I restarted the machine (NOTABUG is probably best here).

From "grep -e notif -e panel /var/log/yum.log":
---
Oct 24 16:56:45 Updated: notification-daemon-0.7.3-1.fc16.x86_64
Oct 24 16:56:50 Updated: gnome-panel-libs-3.2.1-1.fc16.x86_64
Oct 24 17:00:07 Updated: gnome-panel-3.2.1-1.fc16.x86_64

Oct 31 17:26:42 Updated: notification-daemon-0.7.3-2.fc16.x86_64
Oct 31 17:27:26 Updated: gnome-panel-libs-3.2.1-2.fc16.x86_64
Oct 31 17:33:42 Updated: gnome-panel-3.2.1-2.fc16.x86_64
---
and it is possible that I haven't done any restart/gnome-shell restart
before 2011-11-04.


Note You need to log in before you can comment on or make changes to this bug.