unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: 25631@debbugs.gnu.org
Subject: bug#25631: epiphany: Ad blocker does not work.
Date: Mon, 06 Feb 2017 13:02:42 +0100	[thread overview]
Message-ID: <87wpd3v865.fsf@elephly.net> (raw)
In-Reply-To: <87zihzvaym.fsf@elephly.net>

“g_file_new_for_uri” triggers the download via dbus, so it must be made
aware of the dbus session.  When running “dbus-launch epiphany” the
error changes to

    ** (WebKitWebProcess:30867): WARNING **: Error retrieving adblock filter: HTTP Error: TLS/SSL support not available; install glib-networking

If I first export the same environment variables (for GIO modules) that
are set in the epiphany wrapper the error disappears:

    guix environment --ad-hoc dbus
    source <(sed $(readlink -f $(which epiphany)) -e "s/exec.*//")
    dbus-launch epiphany

Should we use dbus-launch in the wrapper script or should we ensure
system-wide that after logging in the DBUS_SESSION_BUS_ADDRESS is
exported?

I’m using stumpwm so I don’t know if GNOME usually takes care of this.
Maybe it is sufficient to run “dbus-launch” in .xsession and eval the
variable definitions it generates.

If this is so, should we handle this by default in some global file like
/etc/environment or similar?

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

  reply	other threads:[~2017-02-06 12:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-06 11:02 bug#25631: epiphany: Ad blocker does not work Ricardo Wurmus
2017-02-06 12:02 ` Ricardo Wurmus [this message]
2017-02-07 10:14   ` Mark H Weaver
2017-02-07 10:29     ` Ricardo Wurmus
2018-08-30  0:19 ` Leo Famulari
2018-08-30  7:54   ` Ricardo Wurmus

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=87wpd3v865.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=25631@debbugs.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).