View on GitHub

Tubefeeder Wiki

Using a different video player

Note: Depending on the video player you use, you may not be able to play videos from all supported platforms.

Change default player (not for flatpak)

To change the default video player, use the environmental variable PLAYER. You can for example set this variable in your .profile, e.g by adding PLAYER="myplayer" to your .profile.

Changing for flatpak

Changing the default player for the flatpak is a little bit harder as the flatpak version does not have access to run arbitrary commands on the host. You will have to change that permission manually.

Changing the permissions

Depending on how you have installed the flatpak (user or system-wide) you will have to run one of the following commands. If you are unsure how you have installed it, just try out both.

flatpak --user override de.schmidhuberj.tubefeeder --talk-name=org.freedesktop.Flatpak
sudo flatpak  override de.schmidhuberj.tubefeeder --talk-name=org.freedesktop.Flatpak

You can check that the command worked by using

flatpak info --show-permissions de.schmidhuberj.tubefeeder

You should see:

[Session Bus Policy]
org.freedesktop.Flatpak=talk

Apply the new player

You will have to set the PLAYER variable to:

PLAYER="flatpak-spawn --host myplayer"

If you are using e.g. Clapper, you will have to set it to:

PLAYER="flatpak-spawn --host flatpak run com.github.rafostar.Clapper"

Depending on how you have installed the flatpak (user or system-wide):

flatpak --user override de.schmidhuberj.tubefeeder --env=PLAYER="flatpak-spawn --host flatpak run com.github.rafostar.Clapper"

or

sudo flatpak override de.schmidhuberj.tubefeeder --env=PLAYER="flatpak-spawn --host flatpak run com.github.rafostar.Clapper"

Notice

Copyright: 2021 Julian Schmidhuber github@schmiddi.anonaddy.com

Unless otherwise noted content on this wiki may be used under the terms of the GNU FDL, either version 1.3 (https://www.gnu.org/licenses/fdl-1.3.html) or (at your opinion) any later version of the license, or (at your opinion) the CC-BY-SA-4.0-license (https://creativecommons.org/licenses/by-sa/4.0/legalcode).