SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I installed libnotify using slackbuilds.org, and when I am in screen, I used to be able to `notify-send example` while in screen. But now, I am no longer able to use it. I get this error:
Code:
$ notify-send hello
libnotify-Message: Unable to get session bus: Failed to connect to socket /tmp/dbus-VVqepgiwYi: Connection refused
If I restart screen while in X, I can use notify-send while in screen, but once I restart X, it no longer works. I have "export DISPLAY=:0" in my .zshrc. I've googled around for this problem, but I've been unable to find a solution. "export DISPLAY=:0" worked for a while, but for some reason, it no longer works.
I'm still having trouble. I don't think that init script is getting the PID for dbus, I tried to get it then echo it if it found it instead, and nothing was echoed. when I echo the DBUS variable in screen I get this:
As you can see, they are two different things for the same variable. I've also tried of exporting the one from terminal into the screen variable, but I get this:
Code:
$ export $DBUS_SESSION_BUS_ADDRESS='unix:abstract=/tmp/dbus-mH5076K30K,guid=b818f3dee8bf0d0b5295bc834b65f08e'
export: not valid in this context: unix:abstract
What else could it be....
edit: fixed my echo
Last edited by J_Humphrey; 01-31-2010 at 04:58 PM.
Did you *only* install libnotify? I'm going to assume that's all you built.
Installing libnotify on it's own won't show a pop-up.
I build:
libsexy
libnotify
exo-notify (from SBo only it's a virtual package - it's a rebuild of xfce's exo but seeing the libnotify package, then the SBo script just put's the relavant binary into a package.)
notification-daemon-xfce
Then using 'notify-send ...' works with a popup. also then the pidgin-libnotify app, xchat (if rebuilt) will work with the toaster pop-ups too.
Also make sure that the /etc/rc.d/rc.messagebus is running.
On kde 3.5 series, I had issues with dbus in kde. The only tweak I found for that was to use dbus-launch exit with session ( I forget the exact command, it's used in the startxfce scripts)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.