From 2aae7d33307343ad602c4ba02a6b142e50b06ff1 Mon Sep 17 00:00:00 2001 From: TomasM Date: Sat, 24 Mar 2018 15:33:41 -0400 Subject: [PATCH] vlc postinstall --- .../debian/modules/03-desktop/rootcopy/usr/bin/fbliveapp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Slax/debian/modules/03-desktop/rootcopy/usr/bin/fbliveapp b/Slax/debian/modules/03-desktop/rootcopy/usr/bin/fbliveapp index 08ca134..62df738 100755 --- a/Slax/debian/modules/03-desktop/rootcopy/usr/bin/fbliveapp +++ b/Slax/debian/modules/03-desktop/rootcopy/usr/bin/fbliveapp @@ -4,7 +4,7 @@ if [ "$1" = "votecoin" ]; then NAME="VoteCoin Wallet" TMP="/tmp/votecoin.tar.gz" EXECUTABLE="/opt/VoteCoin Wallet-linux-x64/VoteCoin Wallet" - INSTALL="wget -O $TMP 'https://votecoin.site/download.php?os=linux' && tar -xf $TMP -C /opt; rm -f $TMP" + INSTALL="wget -O $TMP 'https://votecoin.site/download.php?os=linux' && tar -xf $TMP -C /opt && rm -f $TMP" POSTINSTALL="" ONLY64=true fi @@ -21,7 +21,7 @@ if [ "$1" = "vlc" ]; then NAME="VLC Video Player" EXECUTABLE="/usr/bin/vlc" INSTALL="apt install --yes vlc" - POSTINSTALL="rm /usr/share/applications/vlc.desktop" + POSTINSTALL="rm /usr/share/applications/vlc.desktop; mkdir /home/guest/.config/vlc; echo '[qt4]\nqt-privacy-ask=0' > /home/guest/.config/vlc/vlcrc;" GUEST=true fi @@ -45,10 +45,7 @@ if [ ! -f "$EXECUTABLE" ]; then if gtkdialog -i /usr/share/icons/gnome/16x16/status/dialog-question.png -t Install -m "$NAME is not yet installed. Do you like to download and install it now?" -y Yes -n No; then - xterm -ls -e bash --login -c -- "$INSTALL" - if [ "$POSTINSTALL" != "" ]; then - $POSTINSTALL - fi + xterm -ls -e bash --login -c -- "$INSTALL; $POSTINSTALL" fi fi