You are not logged in.
Pages: 1
I use KDE Plasma on Wayland.
I tried Gimp and Brave browser, both installed through Flatpak.
A few seconds after launch, applications are killed.
During the first launch of Brave, there was a question if I want to permit Brave to run in a background. Wasn't sure, so I didn't let it run.
In KDE Plasma settings, I couldn't find appropriate permission to change and this question didn't appear for a scond time.
Not sure if it is written somewhere here:
flatpak info --show-permissions com.brave.Browser
[Context]
shared=network;ipc;
sockets=x11;wayland;pulseaudio;pcsc;cups;
devices=all;
filesystems=host-etc;~/.config/kioslaverc;~/.local/share/applications:create;/run/.heim_org.h5l.kcm-socket;~/.config/dconf:ro;xdg-download;~/.local/share/icons:create;xdg-run/dconf;xdg-run/pipewire-0;xdg-desktop;
persistent=.pki;
[Session Bus Policy]
org.freedesktop.Notifications=talk
org.kde.kwalletd5=talk
org.mpris.MediaPlayer2.brave.*=own
org.freedesktop.secrets=talk
org.freedesktop.FileManager1=talk
org.freedesktop.ScreenSaver=talk
ca.desrt.dconf=talk
org.gnome.SessionManager=talk
org.gnome.Mutter.IdleMonitor.*=talk
[System Bus Policy]
org.freedesktop.Avahi=talk
org.freedesktop.UPower=talk
[Environment]
GSETTINGS_BACKEND=dconf
GIO_EXTRA_MODULES=/app/lib/gio/modules
GTK_PATH=/app/lib/gtkmodules
XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons
DCONF_USER_CONFIG_DIR=.config/dconfSo I decided to go (as Arch wiki says) with:
flatpak uninstall --delete-data nameAfter the second installation of Brave the question about running in the background appeared again and now Brave works.
I would like to find out how to change this permission or reset them without removing application with command above.
(flatpak override --reset name didn't help too)
Offline
Flatpak manages dynamic permissions such as background, location, notifications, etc. through its portal API instead of overrides, hence flatpak override doesn't affect these permissions.
I don't know how KDE handles these permissions, but as an alternativ, flatseal, a separate application to manage flatpak permissions, supports the background permissions as far as I remember. You can install flatseal via flatpak.
Offline
Flatpak manages dynamic permissions such as background, location, notifications, etc. through its portal API instead of overrides, hence flatpak override doesn't affect these permissions.
I don't know how KDE handles these permissions, but as an alternativ, flatseal, a separate application to manage flatpak permissions, supports the background permissions as far as I remember. You can install flatseal via flatpak.
Thanks.
I've checked flatseal. It has background permission for Brave. It's a GTK app so it looks awful but it works.
BTW. KDE Plasma flatpak permission manager is almost the same. It just looks better in plasma. But there is nothing about background running. But as I said. There was a popup message from plsma that Brave wants to run in a background. So it's a bit surprising that there is nothing in permission manager (not sure if the name is correct)
edit.
I checked one more thing:
flatpak permission-show com.brave.Browser
Table Object App Permissions Data
background background com.brave.Browser yes 0x00So it is written in the system.
I've found topic on fedora froum
https://discussion.fedoraproject.org/t/ … le/65449/5
It seems that this is related to Plasma on Wayland
Last edited by 860lacov (2023-07-29 14:32:45)
Offline
I didn't know about "flatpak permission-show". There's also "flatpak permission-set" which looks as if you could use it to set the background permission for Brave.
As to why KDE doesn't expose this, I don't know. I don't use KDE; I guess you really need to ask the KDE developers about this.
Last edited by 3beb6e7c46a615a (2023-07-29 15:16:19)
Offline
Pages: 1