as a rolling distribution, sometimes(always) when we after updating the environment of Arch, some apps crush.

we can use a sandbox env to use the same app on different environment of every distro.(or we can use virtual env…)

for example, when I update my Arch, and some libs get wrong & deleted & interface-changed, which lead my spotify can’t work.

1
2
3
4

(spotify:20635): libayatana-appindicator-WARNING **: 22:03:05.345: libayatana-appindicator is deprecated. Plea
se use libayatana-appindicator-glib in newly written code. libva error: /usr/lib/dri/nvidia_drv_video.so init failed

like this.

so we can use a sandbox version, it will use it’s own libs, (commonly in ~/.var/app/), app can maintain env by their own.

1
2
3
4
5
6
7
8
9
# install flatpak
sudo pacman -S flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

# install Spotify with flatpak
flatpak install flathub com.spotify.Client

# run Spotify
flatpak run com.spotify.Client

so we can use spotify without bothered by rolling envs.