Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 485898 - sys-apps/uam-0.3 should RDEPEND on x11-misc/tinynotify-send - 'command not found' in notification scripts
Summary: sys-apps/uam-0.3 should RDEPEND on x11-misc/tinynotify-send - 'command not fo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-24 19:54 UTC by Quentin Minster
Modified: 2013-09-26 21:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Quentin Minster 2013-09-24 19:54:54 UTC
sys-apps/uam installs hooks to send notifications through libtinynotify on mount/umount of removable media. These notifications are only enabled if x11-misc/sw-notify-send is present on the system (this is mentioned in the postinst message for sys-apps/uam).

However even with x11-misc/sw-notify-send installed, some hook scripts throw a 'command not found' error as they try to use tinynotify-send. tinynotify-send is *not* part of x11-misc/sw-notify-send, but is provided by x11-misc/tinynotify-send, which is not pulled in when installing x11-misc/sw-notify-send (and should not be pulled in, as mentioned in bug #484230).

The tinynotify-send command is used in the hook scripts to check its help message for the "--action" parameter. This parameter is also present in sw-notify-send (those two pieces of software are the same thing, except that sw-notify-send is system-wide while tinynotify-send is not), hence I guess the scripts should be updated to use *only* sw-notify-send (the one hinted in sys-apps/uam postinst message) instead of *both* tinynotify-send and sw-notify-send.

Reproducible: Always

Steps to Reproduce:
1. emerge sys-apps/uam-0.3
2. emerge sys-apps/pmount-0.9.99_alpha-r1
3. emerge x11-misc/sw-notify-send-1.2.1
4. ensure x11-misc/tinynotify-send is NOT emerged
5. plug in any removable media as a user of the plugdev group
6. umount the media with uam-pumount <mount point>
Actual Results:  
notification shows up ok but console output indicates 'tinynotify-send: command not found'

Expected Results:  
notification shows up ok with no error in console output
also, I guess actions should be available in the notification
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-09-26 20:46:48 UTC
Ah, I see. This particular check is there because sw-notify-send used to be a stand-alone wrapper for notify-send. Nowadays it's just part of tinynotify, so I guess I'll simply remove the check and assume nobody uses the ancient version anymore.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-09-26 21:16:39 UTC
Fixed and released 0.3.2.