Advertisement
Javinator9889

Installing AppImages systemlessly

Dec 15th, 2019
425
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.54 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # This script shows how to create
  4. # an AppImage .desktop file with
  5. # its icons and necessary information.
  6.  
  7. # First of all, we will create a folder
  8. # in /tmp for downloading and automatically
  9. # deleting the binaries.
  10.  
  11. mkdir /tmp/appimaged
  12. cd /tmp/appimaged
  13.  
  14. # Now, we must download the binary from
  15. # https://github.com/AppImage/appimaged
  16. # This daemon will monitor some folders
  17. # and, when a new AppImage is detected,
  18. # it is automatically installed in our
  19. # userspace
  20.  
  21. # Check if we have "wget" installed
  22. command -v wget >/dev/null 2>&1 || { printf >&2 "I require \"wget\" but it is not installed - install it by using:\n\t[sudo] apt install wget\nAborting\n"; exit 1; }
  23.  
  24. # Now, download the required script
  25. wget "https://github.com/AppImage/appimaged/releases/download/continuous/appimaged-x86_64.AppImage"
  26. chmod a+x appimaged-x86_64.AppImage
  27.  
  28. # Before starting the daemon, create
  29. # some necessary folders
  30. mkdir -p $HOME/Applications
  31. mkdir -p $HOME/bin
  32.  
  33. # Notify the user about the just created folders
  34. echo "For installing some AppImage, please copy/download/move it to $HOME/Applications or $HOME/bin - you can just leave it on the Downloads folder, but it is not recommended as it can be easily removed"
  35.  
  36. # and finally install the daemon
  37. ./appimaged-x86_64.AppImage --install
  38.  
  39. # Now, a logout is required for applying the changes
  40. echo "Please, logout and log-in again for finishing the installation"
  41. echo "You can now manage the daemon by using the \"appimaged\" command"
  42. echo "Brought to you by Javinator9889"
  43.  
  44. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement