How do we start the D-bus session manually? (SOLVED)

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
mikewalsh
Moderator
Posts: 6034
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 738 times
Been thanked: 1899 times

How do we start the D-bus session manually? (SOLVED)

Post by mikewalsh »

Afternoon, gang.

Now then; how do we start the D-bus session from a shell script?

I know I've used it before in one of my hundreds of scripts, at some point over the last few years. I'm hanged if I can find it, so can anyone enlighten me?

I'm troubleshooting a particular AppImage that insists it wants D-bus, and is complaining that it hasn't launched. I've had to strip it down with "--appimage-extract" anyway, since it's one of those that insists it can't see its own Qt5 libs. Usually, using the 'LD_LIBRARY_PATH' variable will let me get these started, but this one has thrown a new wrinkle by wanting Dbus, too.

Any takers? Advice will, as usual, be very much appreciated; everything on-line is about using the dreaded systemd...

Mike. ;)

bigpuppyfan
Posts: 80
Joined: Fri Feb 12, 2021 1:20 pm
Has thanked: 14 times
Been thanked: 16 times

Re: How do we start the D-bus session manually?

Post by bigpuppyfan »

Try this, before launching the appimage from the same terminal window:

Code: Select all

export $(dbus-launch)
User avatar
rockedge
Site Admin
Posts: 6378
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2579 times
Been thanked: 2535 times
Contact:

Re: How do we start the D-bus session manually?

Post by rockedge »

@mikewalsh,
Try this in the script ->

Code: Select all

dbus-daemon --system

or ->

Code: Select all

dbus-daemon --session
User avatar
mikewalsh
Moderator
Posts: 6034
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 738 times
Been thanked: 1899 times

Re: How do we start the D-bus session manually?

Post by mikewalsh »

@bigpuppyfan / @rockedge :-

Cheers for the replies, guys. As it turns out, bigpuppyfan's

Code: Select all

export $(dbus-launch)

.....was the one I was looking for. I knew there was an "export" in there somewhere, but I've got so many scripts stored away it would have taken me hours to search through them all. It was simply quicker to ask!

As soon as I saw it, I knew that was the one; I just didn't remember the exact wording, 'twas all......and I'd forgotten the "$" variable, too.

Ta very much, lads!

Mike. ;)

Post Reply

Return to “Users”