Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 07-17-2018, 06:50 AM   #1
Registered: Jul 2007
Posts: 150

Rep: Reputation: 32
Problem: dbus variables not being exported since a few days ago (~2018-07-16).

Hello, everyone.

Not sure if my problem is connected to a recent '-current' update, or just is a result of the wrong curvature of my arms, but since yesterday, dbus is not working on my system.

In particular, dbus system-wide variables don't seem to be exported and all dbus-dependent applications refuse to start. However, starting them with 'dbus-launch appname' works just fine.

I actually noticed this when my xfce refused to start, complaining about not being able to connect to the dbus socket.

Failed to open connection to session bus: Failed to connect to socket /tmp/dbus-
Where may the problem hide?

As a work-around, I switched the default runlevel back to 3 and added

export $(dbus-launch)
to .bashrc

But this clearly is the dirtiest trick on Earth, so I'm still looking for a better solution.

NetworkManager issue, which was here, is, in fact, unrelated.

Last edited by Lockywolf; 07-17-2018 at 09:35 AM.
Old 07-17-2018, 10:21 AM   #2
Senior Member
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,545

Rep: Reputation: Disabled
What DE or WM are you using? How are you starting X?

I personally put this in ~/.xinitrc and use startx, it seems to work well.
eval `dbus-launch --sh-syntax --exit-with-session`
I would suggest against using ~/.bashrc since that is sourced every time you open a terminal.
Old 07-17-2018, 08:12 PM   #3
Registered: Jul 2007
Posts: 150

Original Poster
Rep: Reputation: 32
The problem with dbus in X sort of magically disappeared (hope it stays like this).

However the problem with dbus-monitor run from the console is still there.

Still, running basically any dbus-aware program from the terminal requires exporting dbus variables first.

Since we have system-wide rd.messagebus anyway, shan't we have something like /etc/profile.d/ ?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find a file that's modified more than 2 days ago but less than 5 days BudiKusasi Linux - Newbie 1 02-09-2018 07:25 PM
ddrescue - last successful read 15 days ago czezz Linux - Software 3 02-08-2018 02:46 PM
Passed CNE two days ago sundri Linux - Certification 1 10-17-2006 12:03 PM
remove a folder created 3 days ago. eduac Linux - Software 4 10-17-2005 11:15 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration