unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Danny Milosavljevic <dannym@scratchpost.org>
To: Brendan Tildesley <brendan.tildesley@openmailbox.org>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Programs like pcmanfm, evince, ... don't connect to dbus unless run with dbus-launch
Date: Sun, 5 Aug 2018 02:23:22 +0200	[thread overview]
Message-ID: <20180805022322.730e2df2@scratchpost.org> (raw)
In-Reply-To: <4cb02345-ff28-02e5-63f7-3df78585e4b9@openmailbox.org>

[-- Attachment #1: Type: text/plain, Size: 1899 bytes --]

Hi Brendan,

On Thu, 2 Aug 2018 16:21:02 +1000
Brendan Tildesley <brendan.tildesley@openmailbox.org> wrote:

> I've always had gvfs installed and it hasn't made any difference as far
> as I can tell

Hmm, what does your ~/.guix-profile/share/dbus-1/services directory contain?

What is the environment variable XDG_DATA_DIRS set to?

> Previously there was no $DBUS_SESSION_BUS_ADDRESS. 

Ok, then no dbus was running and that's bad for the clients of dbus.  They try
to autorun dbus in that case - but I've never seen that actually working :P

>After I modified slim
> to add dbus-launch, I have
> DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-Rc7AP3Xnzz,guid=97d26aba11773a9ce755829b5b611375

Okay, so now there's a session bus now.  Progress :)

> but it didn't fix the issue, and caused those weird errors. Actually I'm
> not getting those errors anymore, maybe due to reconfiguring and
> rebooting. 

Even more progress :)

>When I run `dbus-launch bash` , it overwrites that value with
> a new value in the current environment:
> unix:abstract=/tmp/dbus-1vzMgxAURi,guid=98eb63bd2e22340a0c1d3bd85b6116d5

Yeah, as I said, now you have a tiny session even though you had a big session
already.  This isn't as useless as it sounds - it would make sense in containers
etc.

>  and then running pcmanfm/evince only from that bash shell works fine,
> running outside it or from dmenu doesn't.

If you are motivated, I suggest to try to proceed to get the version
without "dbus-launch bash" (but with slim configured to use dbus-launch)
to work.  It can't be missing much now.

I suspect that the gvfs service file is either not there, the environment
variable is not set or the executable mentioned inside the service file
is not found.

For better debugging, try:

youruser$ export DBUS_VERBOSE=1
youruser$ evince

And post the result here.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2018-08-05  0:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-26 15:10 Programs like pcmanfm, evince, ... don't connect to dbus unless run with dbus-launch Brendan Tildesley
2018-07-28 19:40 ` Nils Gillmann
2018-07-31 21:54 ` Danny Milosavljevic
2018-08-02  5:52   ` Chris Marusich
2018-08-02  6:21   ` Brendan Tildesley
2018-08-05  0:23     ` Danny Milosavljevic [this message]
2018-08-05  0:30       ` Danny Milosavljevic
2018-08-05 11:57       ` Brendan Tildesley
2018-08-12 22:09         ` Danny Milosavljevic
2018-11-12 10:57           ` Brendan Tildesley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180805022322.730e2df2@scratchpost.org \
    --to=dannym@scratchpost.org \
    --cc=brendan.tildesley@openmailbox.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).