Advertisement
illwieckz

iqebrowser

Mar 3rd, 2018
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.37 KB | None | 0 0
  1. #! /bin/sh
  2.  
  3. if [ ! -z "${1}" ]
  4. then
  5.     file_path="$(winepath --windows "$(realpath "${1}")")"
  6. fi
  7.  
  8. cd "$(dirname "$(realpath "${0}")")"
  9.  
  10. basepath="iqebrowser"
  11. xdgsharepath="${XDG_DATA_HOME:-${HOME}/.local/share}/${basepath}"
  12.  
  13. WINEPREFIX="${xdgsharepath}/wine"
  14.  
  15. if [ -z "${file_path}" ]
  16. then
  17.     wine IqeBrowser.exe
  18. else
  19.     wine IqeBrowser.exe "${file_path}"
  20. fi
  21.  
  22. #EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement