README 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. Flatpak
  2. Flatpak is the new framework for desktop applications on Linux
  3. Distributing applications on Linux is a pain: different distributions
  4. in multiple versions, each with their own versions of libraries and
  5. packaging formats. Flatpak is here to change all that. It allows the
  6. same app to be installed on different Linux distributions, including
  7. different versions. And it has been designed from the ground up with
  8. security in mind, so that apps are isolated from each other and from
  9. the host system.
  10. You can find many apps already available on https://flathub.org/
  11. Apps that require pulse audio (like steam, skype, etc) need
  12. PULSE_SERVER environment variable to be set. This is not set for most
  13. shells in slackware by default. One way I found to set this is:
  14. export `xprop -root -notype PULSE_SERVER | tr -d ' '`
  15. Some of the examples from http://flatpak.org/#users are relying
  16. on polkit helpers, that expect a user in the 'wheel' group to have
  17. privileges for, but default polkit admin rule for slackware is just
  18. the root user. So, if you run a command like:
  19. flatpak remote-add --from gnome https://sdk.gnome.org/gnome.flatpakrepo
  20. flatpak remote-add --from gnome-apps \
  21. https://sdk.gnome.org/gnome-apps.flatpakrepo
  22. as a limited user, you will get a polkit prompt for root's
  23. password. This is because the default location for establishing these
  24. repos is in `/var/lib/flatpak` and requires admin privileges.
  25. You can optionally add the flag `--user` to flatpak commands, and it
  26. will instead manage the repos in `~/.local/share/flatpak`.
  27. There are examples of flatpak runtimes and applications on their wiki:
  28. https://github.com/flatpak/flatpak/wiki/Examples
  29. They too have desktop launchers search by desktops like KDE and XFCE,
  30. it will require a logout, as /etc/profile.d/flatpak.sh will need to
  31. be sourced.