summaryrefslogtreecommitdiff
path: root/libre/xbmc-libre-lts/xbmc.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-08-10 17:39:14 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-08-10 17:39:14 -0300
commitb8bf5a11ddcb3d3ba3df302c2f5ca635db8fc3f2 (patch)
treeecb3a7f47270ccad19ae30b92363035dce916c31 /libre/xbmc-libre-lts/xbmc.install
parent8ba3b93ef7bc7cb3340ba8a10baf07616ac9befb (diff)
downloadabslibre-b8bf5a11ddcb3d3ba3df302c2f5ca635db8fc3f2.tar.gz
abslibre-b8bf5a11ddcb3d3ba3df302c2f5ca635db8fc3f2.tar.bz2
abslibre-b8bf5a11ddcb3d3ba3df302c2f5ca635db8fc3f2.zip
xbmc-libre-lts-12.3-6: fix issues reported from Arch
FIXES: FS#41391 (https://bugs.archlinux.org/task/41391) - [xbmc] Since the new xorg update, xbmc.service does not start remove xbmc.service add note linking to the wiki FS#41498 (https://bugs.archlinux.org/task/41498) - [xbmc] Missing PIL dependency
Diffstat (limited to 'libre/xbmc-libre-lts/xbmc.install')
-rw-r--r--libre/xbmc-libre-lts/xbmc.install30
1 files changed, 9 insertions, 21 deletions
diff --git a/libre/xbmc-libre-lts/xbmc.install b/libre/xbmc-libre-lts/xbmc.install
index 48f337c55..f90770bd5 100644
--- a/libre/xbmc-libre-lts/xbmc.install
+++ b/libre/xbmc-libre-lts/xbmc.install
@@ -1,36 +1,24 @@
post_install() {
update_icons
- getent group xbmc > /dev/null || groupadd -g 420 xbmc
- if ! getent passwd xbmc > /dev/null; then
- useradd -c 'XBMC user' -u 420 -g xbmc -G audio,video,network,optical -d /var/lib/xbmc -s /sbin/nologin xbmc
- passwd -l xbmc > /dev/null
- fi
+ update_autostart
}
post_upgrade() {
- post_install $1
- if ! getent group xbmc | cut -d: -f3 | grep 420 > /dev/null 2>&1; then
- groupmod -g 420 xbmc > /dev/null 2>&1
- fi
- if ! id -u xbmc | grep 420 > /dev/null 2>&1; then
- usermod -u 420 xbmc > /dev/null 2>&1
- if [[ $? -ne 0 ]]; then
- echo "Changing uid of user xbmc failed"
- echo "It is recommended that the uid is changed."
- echo "Stop all processes running under the xbmc user and reinstall xbmc"
- echo "or change the uid manually. (usermod -u 420 xbmc)"
- fi
- chown -R xbmc:xbmc /var/lib/xbmc
- fi
+ update_icons
+ update_autostart
}
post_remove() {
update_icons
- getent passwd xbmc > /dev/null 2>&1 && userdel xbmc
- getent group xbmc > /dev/null 2>&1 && groupdel xbmc
+ update_autostart
}
update_icons() {
type -p gtk-update-icon-cache > /dev/null 2>&1 && usr/bin/gtk-update-icon-cache -qtf usr/share/icons/hicolor
type -p update-desktop-database > /dev/null 2>&1 && usr/bin/update-desktop-database -q usr/share/applications
+ return 0
+}
+
+update_autostart() {
+ echo "To autostart xbmc standalone read: https://wiki.parabolagnulinux.org/index.php/Xbmc#Autostarting_at_boot"
}