all scripts work for non-pi users

pull/61/head
Botspot 4 years ago
parent 9042100303
commit 941bb6c0f9

@ -13,6 +13,6 @@ tar -xf arduino-1.8.13-linuxarm.tar.xz || error "failed to extract with tar!"
arduino-1.8.13/install.sh || error "failed to run install as non-root user!"
sudo arduino-1.8.13/install.sh || error "failed run install as root user!"
rm /home/pi/Desktop/arduino-arduinoide.desktop || error "failed delete desktop shortcut!"
rm $HOME/Desktop/arduino-arduinoide.desktop
rm arduino-1.8.13-linuxarm.tar.xz
exit 0

@ -13,6 +13,6 @@ tar -xf arduino-1.8.13-linuxaarch64.tar.xz || error "failed to extract with tar!
arduino-1.8.13/install.sh || error "failed to run install as non-root user!"
sudo arduino-1.8.13/install.sh || error "failed run install as root user!"
rm /home/pi/Desktop/arduino-arduinoide.desktop || error "failed delete desktop shortcut!"
rm $HOME/Desktop/arduino-arduinoide.desktop
rm arduino-1.8.13-linuxaarch64.tar.xz
exit 0

@ -11,6 +11,6 @@ function error {
"${DIRECTORY}/pkg-install" "python3-tk python3-pil python3-pil.imagetk" "$(dirname "$0")" || exit 1
git clone https://github.com/Jack477/CommanderPi || error "failed to download repository!"
cd /home/pi/CommanderPi || error "failed to enter repository!"
cd CommanderPi || error "failed to enter repository!"
chmod +x install.sh || error "failed to mark install.sh as executable!"
./install.sh || error "failed to run install.sh!"

@ -9,4 +9,4 @@ function error {
"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1
rm -rf ~/CommanderPi || error "failed to remove commanderpi folder!"
sudo rm -f /usr/share/applications/commanderpi.desktop /home/pi/Desktop/commanderpi.desktop || error "failed to remove menu button!"
sudo rm -f /usr/share/applications/commanderpi.desktop ~/Desktop/commanderpi.desktop || error "failed to remove menu button!"

@ -21,12 +21,12 @@ cp -rf qmltermwidget/src/qmldir qmltermwidget/lib/kb-layouts qmltermwidget/lib/c
echo "[Desktop Entry]
Comment=Use the command line the old way
Exec=/home/pi/cool-retro-term/cool-retro-term
Exec=$HOME/cool-retro-term/cool-retro-term
GenericName=Terminal emulator
Icon=/home/pi/cool-retro-term/app/icons/64x64/cool-retro-term.png
Icon=$HOME/cool-retro-term/app/icons/64x64/cool-retro-term.png
Name=Cool Retro Term
Categories=GTK;System;TerminalEmulator;
StartupNotify=true
Terminal=false
Type=Application
Keywords=shell;prompt;command;commandline;console;command line;execute;" >> /home/pi/.local/share/applications/crt.desktop
Keywords=shell;prompt;command;commandline;console;command line;execute;" > ~/.local/share/applications/crt.desktop

@ -28,7 +28,7 @@ Type=Application
Name=Discord
Path=$HOME/discord-electron
Exec=$HOME/discord-electron/electron-discord-webapp
Icon=/home/pi/pi-apps/apps/Discord/icon-64.png
Icon=$(dirname "$0")/icon-64.png
Categories=Network;Chat;VideoConference;WebApp;Internet
Comment=Your place to talk!
GenericName=Network Messenger" > ~/.local/share/applications/discord.desktop

@ -28,7 +28,7 @@ Type=Application
Name=Discord
Path=$HOME/discord-electron
Exec=$HOME/discord-electron/electron-discord-webapp
Icon=/home/pi/pi-apps/apps/Discord/icon-64.png
Icon=$(doirname "$0")/icon-64.png
Categories=Network;Chat;VideoConference;WebApp;Internet
Comment=Your place to talk!
GenericName=Network Messenger" > ~/.local/share/applications/discord.desktop

@ -8,6 +8,6 @@ function error {
}
"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1
sudo rm -f $(cat ~/freecad-build/install_manifest.txt) /home/pi/.local/share/applications/org.freecadweb.FreeCAD.desktop || error "failed to remove every installed file!"
sudo rm -f $(cat ~/freecad-build/install_manifest.txt) ~/.local/share/applications/org.freecadweb.FreeCAD.desktop || error "failed to remove every installed file!"
rm -rf ~/freecad-precompiled /home/pi/FreeCAD-0.18.4 || error "failed to remove both installation folders!"
rm -rf ~/freecad-precompiled ~/FreeCAD-0.18.4 || error "failed to remove both installation folders!"

@ -9,6 +9,6 @@ function error {
"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1
sudo rm -f $(cat ~/freecad-build/install_manifest.txt) /home/pi/.local/share/applications/org.freecadweb.FreeCAD.desktop || error "failed to remove every installed file!"
sudo rm -f $(cat ~/freecad-build/install_manifest.txt) ~/.local/share/applications/org.freecadweb.FreeCAD.desktop || error "failed to remove every installed file!"
rm -rf ~/freecad-build /home/pi/FreeCAD-0.18.4 || error "failed to remove both installation folders!"
rm -rf ~/freecad-build ~/FreeCAD-0.18.4 || error "failed to remove both installation folders!"

@ -21,9 +21,9 @@ Version=1.1
Type=Application
Name=Minecraft Bedrock Launcher
Comment=A Minecraft: Bedrock Edition
Icon=/home/pi/pi-apps/apps/Minecraft Bedrock/icon-64.png
Icon=$(dirname "$0")/icon-64.png
Exec=bash -c "GALLIUM_HUD=simple,fps /usr/bin/MCBedrock.AppImage"
Categories=Game;
Terminal=false
StartupNotify=true' > /home/pi/.local/share/applications/minecraftbedrock.desktop
StartupNotify=true' > ~/.local/share/applications/minecraftbedrock.desktop

@ -24,7 +24,7 @@ wget https://misapuntesde.com/rpi_share/scrcpy-1.13.tar.gz || error "Failed to d
tar -xf scrcpy-1.13.tar.gz || error "Failed to extract!"
rm scrcpy-1.13.tar.gz
ln -s /usr/bin/adb /home/pi/scrcpy/
ln -s /usr/bin/adb $HOME/scrcpy/
sudo mkdir -p /usr/local/share/scrcpy
sudo cp -af $HOME/scrcpy/scrcpy-server /usr/local/share/scrcpy/scrcpy-server

Loading…
Cancel
Save