|author||Jakub Jirutka <email@example.com>||2022-01-19 19:56:01 +0100|
|committer||Jakub Jirutka <firstname.lastname@example.org>||2022-01-19 19:53:01 +0000|
community/flatpak: add post-install message about XDG directories
I took me a long time to figure out what is wrong, why I don't have access to ~/Downloads directory from Flatpacked Firefox on Sway desktop. xdg-user-dirs-update just creates config file `$XDG_CONFIG_HOME/user-dirs.dirs` that defines location of each well-known XDG directory and also creates these directories. It's a one-time thing, this config could be just copied from a template... That's why I'm not proposing to add it as a dependency of flatpak.
2 files changed, 9 insertions, 1 deletions
diff --git a/community/flatpak/APKBUILD b/community/flatpak/APKBUILD
index bc7f6473d4..acf187870f 100644
@@ -4,7 +4,7 @@
# Follows GNOME versioning, MINOR (the 2nd number) must be even.
pkgdesc="Application deployment framework for desktop apps"
# s390x and riscv64 blocked by polkit
diff --git a/community/flatpak/flatpak.post-install b/community/flatpak/flatpak.post-install
index 62c42f3a99..492200d833 100644
@@ -2,4 +2,12 @@
+cat >&2 <<EOF
+* To enable access to XDG directories (e.g. ~/Desktop, ~/Downloads, ...) in
+* Flatpak apps, run xdg-user-dirs-update (from xdg-user-dirs package) as a
+* regular user that will use Flatpak.