Commit 81ef3a86 authored by Dmitriy Terekhin's avatar Dmitriy Terekhin Committed by Anton Midyukov

arm-rpi4: Set celluloid as default video player

parent 6d015586
......@@ -17,6 +17,7 @@ endif
@$(call add,DEFAULT_SERVICES_ENABLE,attach-bluetooth)
use/arm-rpi4/x11: use/arm-rpi4 \
use/browser/firefox/i18n use/browser/firefox/esr; @:
use/browser/firefox/i18n use/browser/firefox/esr
@$(call add,THE_PACKAGES,celluloid celluloid-csd-disabled)
endif
#!/bin/sh -efu
# Change the default application for all file types from mplayer to celluloid
cfile="/usr/share/applications/io.github.celluloid_player.Celluloid.desktop"
mimeappsfile="/usr/share/applications/mimeapps.list"
mimeappslocalfile="/etc/skel/.config/mimeapps.list"
if [ -f "$cfile" -a -f "$mimeappsfile" ]
then
echo "[Default Applications]" > "$mimeappslocalfile"
sed '/[=;]mplayer.desktop/!d ; /[=;]mplayer.desktop/s/=.*/=io.github.celluloid_player.Celluloid.desktop;/' "$mimeappsfile" >> "$mimeappslocalfile"
echo "" >> "$mimeappslocalfile"
echo "[Added Associations]" >> "$mimeappslocalfile"
sed '/[=;]mplayer.desktop/!d ; /[=;]mplayer.desktop/s/=.*/=io.github.celluloid_player.Celluloid.desktop;/' "$mimeappsfile" >> "$mimeappslocalfile"
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment