Advertisement
metalx1000

Create Web App Desktop Link

Nov 21st, 2022
989
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.20 KB | None | 0 0
  1. #!/bin/bash
  2. ######################################################################
  3. #Copyright (C) 2022  Kris Occhipinti
  4. #https://filmsbykris.com
  5.  
  6. #This program is free software: you can redistribute it and/or modify
  7. #it under the terms of the GNU General Public License as published by
  8. #the Free Software Foundation version 3 of the License.
  9.  
  10. #This program is distributed in the hope that it will be useful,
  11. #but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. #GNU General Public License for more details.
  14.  
  15. #You should have received a copy of the GNU General Public License
  16. #along with this program.  If not, see <http://www.gnu.org/licenses/>.
  17. ######################################################################
  18.  
  19. app="Films By Kris"
  20. desktop_file="$HOME/Desktop/fbk.desktop"
  21. icon="$HOME/.fbk_icon.png"
  22.  
  23. echo "Installing ${app} to Desktop..."
  24.  
  25. wget -qO "$icon" "https://filmsbykris.com/v7/img/tux.png"
  26.  
  27. echo "#!/usr/bin/env xdg-open
  28. [Desktop Entry]
  29. Version=1.0
  30. Terminal=false
  31. Type=Application
  32. Name=${app}
  33. Exec=brave-browser --app='https://filmsbykris.com/'
  34. Icon=${icon}" > "$desktop_file"
  35.  
  36. chmod +x "$desktop_file"
  37.  
  38.  
Tags: Linux BASH
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement