Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
flatpak games unable to open browser
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1556

PostPosted: Tue Jun 27, 2023 9:26 am    Post subject: flatpak games unable to open browser Reply with quote

Hi everyone,

I have installed runescape using flatpak and the game starts just fine but when it tries to open a browser page for authentication(or whatever purpose) it just hands and I get the following error in the terminal:

Code:
Failed to connect to session bus: Failed to execute child process ?dbus-launch? (No such file or directory)
[ebuild   R    ] sys-apps/dbus-1.15.4-r1::gentoo  USE="X systemd -debug -doc (-elogind) (-selinux) -static-libs -test -valgrind" ABI_X86="(64) -32* (-x32)" 0 KiB


I can run dbus-launch fromthe terminal just fine, any idea what I'm missing here?
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3926

PostPosted: Tue Jun 27, 2023 1:07 pm    Post subject: Reply with quote

Are you using a desktop profile?
If not you should.

Is your system systemd?
Plz post
Code:

emerge -pv flatpak
emerge --info

_________________
:)
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1556

PostPosted: Tue Jun 27, 2023 1:35 pm    Post subject: Reply with quote

yeah Im using teh desktop rofile for systemd
and I do use systemd.
Code:
Calculating dependencies... done!
Dependency resolution took 24.37 s.

[ebuild   R    ] sys-apps/flatpak-1.14.4-r3::gentoo  USE="X systemd -doc -introspection -policykit -seccomp" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

Portage 3.0.45.3 (python 3.11.3-final-0, default/linux/amd64/17.1/desktop/systemd, gcc-12, glibc-2.36-r8, 6.1.31-gentoo x86_64)
=================================================================
System uname: Linux-6.1.31-gentoo-x86_64-Intel-R-_Core-TM-_i5-3317U_CPU_@_1.70GHz-with-glibc2.36
KiB Mem:    11959668 total,   9233304 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 15 Jun 2023 00:45:01 +0000
Head commit of repository gentoo: a25e8483e7d18613a561d6730de74821e956c1a4
sh bash 5.1_p16-r4
ld GNU ld (Gentoo 2.39 p6) 2.39.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r4::gentoo
dev-lang/perl:             5.36.0-r2::gentoo
dev-lang/python:           3.11.3::gentoo
dev-util/cmake:            3.26.3::gentoo
dev-util/meson:            1.1.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          253.3-r1::gentoo
sys-devel/autoconf:        2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r1::gentoo
sys-devel/gcc:             12.2.1_p20230428-r1::gentoo
sys-devel/gcc-config:      2.10::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe -march=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nodoc noinfo parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j4"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="amd64 asm cpudetection lto minimal multiarch nptl nvenc opencl opengl openmp pgo split-usr systemd test-rust threads vaapi vdpau" ABI_X86="64" CPU_FLAGS_X86="avx f16c mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" INPUT_DEVICES="libinput synaptics" KERNEL="linux" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" VIDEO_CARDS="intel nvidia"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3926

PostPosted: Tue Jun 27, 2023 2:04 pm    Post subject: Reply with quote

Well your USE flags do not correspond to your profile.You have very few enabled.You need to enable "dbus" in universal USE.
Also try building flatpak with policykit USE.
_________________
:)
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1556

PostPosted: Wed Jun 28, 2023 3:04 am    Post subject: Reply with quote

the only package that had the dbus flag was glib, so i re-emerged it with the dbus flag and the error persists
I tried building flatpak with the policykit use flag but I got the following during compilation:
Code:

checking for          polkit-agent-1 >= 0.98... no
configure: error: Package requirements (         polkit-agent-1 >= 0.98) were not met:

Package 'polkit-agent-1', required by 'virtual:world', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables POLKIT_CFLAGS
and POLKIT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

any idea how to resolve
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3926

PostPosted: Wed Jun 28, 2023 9:22 pm    Post subject: Reply with quote

What DE are you using?
How do you start it?
Via DM like ie lightdm etc or via startx?
Still i am not sure if your minimal use flags are enough to support a graphic environment properly....
Plz post
Code:

emerge -pv polkit

Again these
Code:

USE="amd64 asm cpudetection lto minimal multiarch nptl nvenc opencl opengl openmp pgo split-usr systemd test-rust threads vaapi vdpau"

dont seem enough to run a graphic environment IMHO.
You have desktop/systemd no.
Where are the rest of USE?
Did you disable them in make.conf?
_________________
:)
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1556

PostPosted: Sun Jul 02, 2023 3:54 pm    Post subject: Reply with quote

I'm using icewm, no DM I just start it via startx
Code:
adel@samsung ~ $ cat ~/.xinitrc
/usr/bin/icewm-session
[ebuild   R    ] sys-auth/polkit-122-r1::gentoo  USE="pam systemd -daemon -duktape -examples -gtk -introspection -kde (-selinux) -test" 0 KiB


yes I have disabled pretty much all use flags in make.conf
Code:
samsung ~ # cat /etc/portage/make.conf
USE="-* asm nptl openmp lto multiarch minimal pgo systemd opengl opencl cpudetection nvenc threads vaapi vdpau"
PYTHON_TARGETS="python3_11"
PYTHON_SINGLE_TARGET="python3_11"
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-O2 -pipe -march=native"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
MAKEOPTS="-j4"
ABI_X86="64"
FEATURES="nodoc noinfo"
# NOTE: This stage was built with the bindist Use flag enabled

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C.utf8
VIDEO_CARDS="intel nvidia"
INPUT_DEVICES="libinput synaptics"
BINPKG_FORMAT="gpkg"
CPU_FLAGS_X86="avx f16c mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3"
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3926

PostPosted: Sun Jul 02, 2023 4:31 pm    Post subject: Reply with quote

Try having in ~/.xinitrc
Code:

exec dbus-launch --exit-with-session icewm-session


Make sure you have dbus enabled and running.
Again you chose a super minimal USE set.
_________________
:)
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1556

PostPosted: Sun Jul 02, 2023 5:48 pm    Post subject: Reply with quote

same error unfortunately :(
I understand that allof this is a result of my minimal use flags, I will try to find a solution though, or a workaround maybe
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1556

PostPosted: Thu Jul 13, 2023 10:45 am    Post subject: Reply with quote

all I could find so far is that the culprit behind this issue is probably:
sys-apps/xdg-desktop-portal

I'm assuming that because the call is part of the xdg-desktop-porta as per the documentation:
https://flatpak.github.io/xdg-desktop-portal/#gdbus-interface-org-freedesktop-portal-Request.top_of_page

and the error that I get when i try to open the webpage:
Code:
Failed to call portal: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface ?org.freedesktop.portal.OpenURI? on object at path /org/freedesktop/portal/desktop
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3926

PostPosted: Thu Jul 13, 2023 1:51 pm    Post subject: Reply with quote

You do have it installed as it is a hard dependency of flatpak.
Plz post
Code:

ls /usr/share/dbus-1/interfaces/org.freedesktop.portal.OpenURI.xml
and
env | grep "XDG"

_________________
:)
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1556

PostPosted: Thu Jul 13, 2023 3:51 pm    Post subject: Reply with quote

Code:
adel@t14 ~ $ ls /usr/share/dbus-1/interfaces/org.freedesktop.portal.OpenURI.xml
/usr/share/dbus-1/interfaces/org.freedesktop.portal.OpenURI.xml

and
Code:
adel@t14 ~ $ env | grep "XDG"
XDG_DATA_DIRS=/home/adel/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum