From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#25631: epiphany: Ad blocker does not work. Date: Mon, 06 Feb 2017 13:02:42 +0100 Message-ID: <87wpd3v865.fsf@elephly.net> References: <87zihzvaym.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cai0h-0004aE-3p for bug-guix@gnu.org; Mon, 06 Feb 2017 07:03:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cai0c-0006xf-8Y for bug-guix@gnu.org; Mon, 06 Feb 2017 07:03:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:59026) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cai0c-0006xR-60 for bug-guix@gnu.org; Mon, 06 Feb 2017 07:03:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cai0b-0000SC-KO for bug-guix@gnu.org; Mon, 06 Feb 2017 07:03:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <87zihzvaym.fsf@elephly.net> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 25631@debbugs.gnu.org “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