Advertisement
Guest User

Native Editoren aus dem Clonk-Editor heraus verwenden

a guest
Aug 28th, 2014
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.62 KB | None | 0 0
  1. #!/bin/bash
  2. # Clonk.exe umbenennen und einen symbolischen link zum shellscript machen damit mit linux clonk gestartet wird
  3. # $ ln -s <pfad_zu_dieser_date> <pfad_zu_clonk>/Clonk.exe
  4. # In den Editoreinstellungen alle externen Programme mit absolutem Pfad auf diese Datei angeben z.B. /home/username/editor.sh
  5. # Und dieses Skript ausführbar machen:
  6. # $ chmod +x skript.sh
  7. if [ $(echo $0 | sed s/".*\(Clonk\\.exe\)/\1/") == "Clonk.exe" ]
  8. then
  9.     <pfad_zu_clonk>/clonk64 "${@:1:$(($#-1))}" $(winepath --unix "$BASH_ARGV")
  10. # Pfad zur (Linux-)Clonk Executable entsprechend anpassen
  11. else
  12.     xdg-open $(winepath --unix "$1")
  13. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement