You are not logged in.

#1 2018-08-22 09:52:36

maldus
Member
Registered: 2017-03-20
Posts: 28

[SOLVED] Dbus error when running flatpak app in Openbox

Hello everyone,
I'm trying to run Almond assistant (https://flathub.org/apps/details/edu.stanford.Almond) installed with flatpak from my openbox DE.

The command

$ flatpak run edu.stanford.Almond

fails with the output:

edu.stanford.Almond:3): Gjs-WARNING **: 11:45:52.324: JS ERROR: Gio.IOErrorEnum: Error calling StartServiceByName for edu.stanford.Almond.BackgroundService: Timeout was reached
_makeProxyWrapper/</<@resource:///org/gnome/gjs/modules/overrides/Gio.js:185:21
main@resource:///edu/stanford/Almond/js/app/main.js:110:13
run@resource:///org/gnome/gjs/modules/package.js:225:12
@/app/bin/edu.stanford.Almond:6:1

Which looks like a dbus related error (no expert here). I already faced something similar when initially running Gnome apps in Openbox, and solved all other issues with my current .xinitrc script (launched with startx):

eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export SSH_AUTH_SOCK
export QT_IM_MODULE=ibus
source /etc/X11/xinit/xinitrc.d/50-systemd-user.sh
dbus-launch --exit-with-session openbox-session

Other Gnome apps work flawlessly (gnome-terminal, nautilus, evince,...).
Incidentally I also have a Gnome DE installed, and everything (Almond included) works there.
I launch Gnome with the command startx ./.gnomerc, and this is .gnomerc

eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export SSH_AUTH_SOCK
exec gnome-session

Since both flatpak and Almond are relatively new and niche software I don't expect to find a direct solution, but rather someone to point me in the right direction to debug/find out what the problem is. What could be the difference between using Gnome and Openbox?

Last edited by maldus (2018-08-26 06:28:00)

Offline

#2 2018-08-23 20:10:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,854

Re: [SOLVED] Dbus error when running flatpak app in Openbox

The issue is your xinitrc, read https://wiki.archlinux.org/index.php/Xinit#xinitrc and especiall get rid of "dbus-launch", this isn't supposed to be there since years.

Offline

#3 2018-08-24 12:18:51

maldus
Member
Registered: 2017-03-20
Posts: 28

Re: [SOLVED] Dbus error when running flatpak app in Openbox

Using the default .xinitrc (as described in the wiki) solved the issue, thanks!

Offline

#4 2018-08-24 12:24:37

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,384

Re: [SOLVED] Dbus error when running flatpak app in Openbox

Please mark as [SOLVED] by editing the title in your first post. https://wiki.archlinux.org/index.php/Co … ow_to_post

Offline

Board footer

Powered by FluxBB