Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't run Brave browser as a flatpak
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Punchcutter
Guru
Guru


Joined: 11 Feb 2007
Posts: 363

PostPosted: Wed Dec 11, 2024 4:32 am    Post subject: Can't run Brave browser as a flatpak Reply with quote

Hi.... I've been wanting to use Brave, and rather than deal with overlays, I thought I would try to run it out of a flatpak, which would also be a good intro to using flatpaks for me.

I've got flatpak installed and Brave installed within, but getting a dbus-related error when I try to execute:
Code:
$ flatpak run com.brave.Browser
Failed to initialize (is the Flatpak D-Bus portal working?): Failed to get portal proxy: Failed to execute child process “dbus-launch” (No such file or directory)

Can anyone give me a hint what's wrong here?

Code:
$ ps -ef | grep dbus
message+  1305     1  0 13:51 ?        00:00:00 /usr/bin/dbus-daemon --system
me       2314     1  0 14:55 ?        00:00:00 dbus-launch --autolaunch 178ffbac00da6fbd71fcf7c565e7c925 --binary-syntax --close-stderr
me       2315     1  0 14:55 ?        00:00:00 /usr/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session
me       2377  2371  0 14:55 ?        00:00:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 11 --address=unix:path=/run/user/1000/at-spi/bus_0
me       3747  5407  0 21:22 pts/3    00:00:00 grep --color=auto dbus

I'm running xorg with just iceWM, starting with startx - very simple environment. My whole system is USE="-systemd". Thanks.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3926

PostPosted: Wed Dec 11, 2024 7:43 pm    Post subject: Reply with quote

What is the output of
Code:

USE="X elogind policykit" emerge -pv sys-apps/dbus flatpak

?
_________________
:)
Back to top
View user's profile Send private message
Punchcutter
Guru
Guru


Joined: 11 Feb 2007
Posts: 363

PostPosted: Wed Dec 11, 2024 7:54 pm    Post subject: Reply with quote

Thanks...
Code:
$ USE="X elogind policykit" emerge -pv sys-apps/dbus flatpak

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 2.88 s (backtrack: 0/20).

[ebuild   R    ] sys-apps/dbus-1.15.8::gentoo  USE="X elogind -debug -doc (-selinux) -static-libs -systemd -test -valgrind" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] sys-apps/flatpak-1.14.10::gentoo  USE="X policykit seccomp -doc -introspection -systemd" 0 KiB

Total: 2 packages (2 reinstalls), Size of downloads: 0 KiB

Elogind is installed and the daemon is running.
Back to top
View user's profile Send private message
Punchcutter
Guru
Guru


Joined: 11 Feb 2007
Posts: 363

PostPosted: Thu Dec 12, 2024 4:19 am    Post subject: Reply with quote

A new bit of information that might shed some light: I just installed the flatpak of the Zoom videoconf client, and it at least starts up without any complaint.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31339
Location: here

PostPosted: Thu Dec 12, 2024 6:29 am    Post subject: Reply with quote

I found this upstream issue, maybe it gives you some hint to understand the problem
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Punchcutter
Guru
Guru


Joined: 11 Feb 2007
Posts: 363

PostPosted: Thu Dec 12, 2024 7:00 am    Post subject: Reply with quote

fedeliallalinea wrote:
I found this upstream issue, maybe it gives you some hint to understand the problem

Thanks but I don't think that applies to me, as I'm not on a musl profile. My profile is default/linux/amd64/23.0/split-usr/desktop
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31339
Location: here

PostPosted: Thu Dec 12, 2024 7:08 am    Post subject: Reply with quote

Punchcutter wrote:
Thanks but I don't think that applies to me, as I'm not on a musl profile. My profile is default/linux/amd64/23.0/split-usr/desktop

True but the answer to the problem says it should not be related to musl. Have you tried tearing the application with the flatpak run -v -v ${app_id} command to get more debug output?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Punchcutter
Guru
Guru


Joined: 11 Feb 2007
Posts: 363

PostPosted: Sat Dec 14, 2024 6:49 am    Post subject: Reply with quote

I found that -v -v gave an enormous amount of mostly not-useful output, so I'll post the output of -v first, and if someone thinks they could help with much more logging, then maybe I'll follow with -v -v later :) The one thing here that strikes me as possibly relevant is the complaint of no systemd user session. I wonder if Brave could really be dependent on systemd (which I don't have and don't want), and the final error output is just a fluke, in that it looks like something different?
Code:
$ flatpak run -v com.brave.Browser
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /home/me/.local/share/flatpak
F: Opening user flatpak installation at path /home/me/.local/share/flatpak
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /home/me/.local/share/flatpak
F: Opening system flatpak installation at path /var/lib/flatpak
F: /var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/24.08/4032cef5b0b698b46df684fc68527252cb7350f39bd90b25bb0c79766911de23/files/lib32 does not exist
F: Cleaning up unused container id 2497080287
F: Cleaning up per-app-ID state for com.brave.Browser
F: Allocated instance id 2783030197
F: Add defaults in dir /com/brave/Browser/
F: Add locks in dir /com/brave/Browser/
F: Not sharing "/home/me/.config/kioslaverc" with sandbox: Unable to open path "/home/me/.config/kioslaverc": No such file or directory
F: Not sharing "/run/.heim_org.h5l.kcm-socket" with sandbox: Unable to open path "/run/.heim_org.h5l.kcm-socket": No such file or directory
F: Allowing wayland access
F: Allowing x11 access
F: Allowing pulseaudio access
F: Pulseaudio user configuration file '/home/me/.config/pulse/client.conf': Error opening file /home/me/.config/pulse/client.conf: No such file or directory
F: CUPS configuration file '/home/me/.cups/client.conf': Error opening file /home/me/.cups/client.conf: No such file or directory
F: Could not find CUPS server
F: Failed to run in transient scope: No systemd user session available, cgroups not available
F: Running 'bwrap --args 42 -- xdg-dbus-proxy --args=44'
F: Running 'bwrap --args 42 -- brave'
Failed to initialize (is the Flatpak D-Bus portal working?): Failed to get portal proxy: Failed to execute child process “dbus-launch” (No such file or directory)
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3926

PostPosted: Sun Dec 15, 2024 12:38 am    Post subject: Reply with quote

Try this:
Code:

sudo chmod u+s /usr/bin/bwrap

Then attempt to run Brave.
If it works then restore the binary
Code:

sudo chmod u-s /usr/bin/bwrap

Then rebuild
Code:

sys-apps/bubblewrap

With USE="suid".
_________________
:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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