maybe chmod 0755 'X11/Xsession.d'
maybe chmod 0644 'X11/Xsession.d/01gtk3-nocsd'
maybe chmod 0644 'X11/Xsession.d/20dbus_xdg-runtime'
+maybe chmod 0644 'X11/Xsession.d/20flatpak'
maybe chmod 0644 'X11/Xsession.d/20x11-common_process-args'
maybe chmod 0644 'X11/Xsession.d/30x11-common_xresources'
maybe chmod 0644 'X11/Xsession.d/35x11-common_xhost-local'
maybe chmod 0644 'profile.d/apps-bin-path.sh'
maybe chmod 0644 'profile.d/bash_completion.sh'
maybe chmod 0644 'profile.d/cedilla-portuguese.sh'
+maybe chmod 0644 'profile.d/flatpak.sh'
maybe chmod 0644 'profile.d/gawk.csh'
maybe chmod 0644 'profile.d/gawk.sh'
maybe chmod 0644 'profile.d/im-config_wayland.sh'
--- /dev/null
+if command -v flatpak > /dev/null; then
+ # set XDG_DATA_DIRS to include Flatpak installations
+
+ new_dirs=$(
+ (
+ unset G_MESSAGES_DEBUG
+ echo "${XDG_DATA_HOME:-"$HOME/.local/share"}/flatpak"
+ flatpak --installations
+ ) | (
+ new_dirs=
+ while read -r install_path
+ do
+ share_path=$install_path/exports/share
+ case ":$XDG_DATA_DIRS:" in
+ (*":$share_path:"*) :;;
+ (*":$share_path/:"*) :;;
+ (*) new_dirs=${new_dirs:+${new_dirs}:}$share_path;;
+ esac
+ done
+ echo "$new_dirs"
+ )
+ )
+
+ export XDG_DATA_DIRS
+ XDG_DATA_DIRS="${new_dirs:+${new_dirs}:}${XDG_DATA_DIRS:-/usr/local/share:/usr/share}"
+fi
libvirt:x:148:mhoellein
libvirt-qemu:x:64055:libvirt-qemu
libvirt-dnsmasq:x:149:
+_flatpak:x:150:
bin:x:2:
sys:x:3:
adm:x:4:syslog,mhoellein
-tty:x:5:mhoellein
+tty:x:5:mhoellein,syslog
disk:x:6:
lp:x:7:
mail:x:8:
libvirt:!::mhoellein
libvirt-qemu:!::libvirt-qemu
libvirt-dnsmasq:!::
+_flatpak:!::
bin:*::
sys:*::
adm:*::syslog,mhoellein
-tty:*::mhoellein
+tty:*::mhoellein,syslog
disk:*::
lp:*::
mail:*::
gpsd:x:137:20:GPSD system user,,,:/run/gpsd:/bin/false
libvirt-qemu:x:64055:139:Libvirt Qemu,,,:/var/lib/libvirt:/usr/sbin/nologin
libvirt-dnsmasq:x:138:149:Libvirt Dnsmasq,,,:/var/lib/libvirt/dnsmasq:/usr/sbin/nologin
+_flatpak:x:139:150:Flatpak system-wide installation helper,,,:/nonexistent:/usr/sbin/nologin
tss:x:136:147:TPM software stack,,,:/var/lib/tpm:/bin/false
gpsd:x:137:20:GPSD system user,,,:/run/gpsd:/bin/false
libvirt-qemu:x:64055:139:Libvirt Qemu,,,:/var/lib/libvirt:/usr/sbin/nologin
-libvirt-dnsmasq:x:138:149::/var/lib/libvirt/dnsmasq:/usr/sbin/nologin
+libvirt-dnsmasq:x:138:149:Libvirt Dnsmasq,,,:/var/lib/libvirt/dnsmasq:/usr/sbin/nologin
+_flatpak:x:139:150::/nonexistent:/usr/sbin/nologin
--- /dev/null
+if command -v flatpak > /dev/null; then
+ # set XDG_DATA_DIRS to include Flatpak installations
+
+ new_dirs=$(
+ (
+ unset G_MESSAGES_DEBUG
+ echo "${XDG_DATA_HOME:-"$HOME/.local/share"}/flatpak"
+ flatpak --installations
+ ) | (
+ new_dirs=
+ while read -r install_path
+ do
+ share_path=$install_path/exports/share
+ case ":$XDG_DATA_DIRS:" in
+ (*":$share_path:"*) :;;
+ (*":$share_path/:"*) :;;
+ (*) new_dirs=${new_dirs:+${new_dirs}:}$share_path;;
+ esac
+ done
+ echo "$new_dirs"
+ )
+ )
+
+ export XDG_DATA_DIRS
+ XDG_DATA_DIRS="${new_dirs:+${new_dirs}:}${XDG_DATA_DIRS:-/usr/local/share:/usr/share}"
+fi
gpsd:*:18409:0:99999:7:::
libvirt-qemu:!:18454:0:99999:7:::
libvirt-dnsmasq:!:18454:0:99999:7:::
+_flatpak:*:18536:0:99999:7:::
gpsd:*:18409:0:99999:7:::
libvirt-qemu:!:18454:0:99999:7:::
libvirt-dnsmasq:!:18454:0:99999:7:::
+_flatpak:*:18536:0:99999:7:::