allow opening paths

This commit is contained in:
Philipp A 2019-02-26 18:18:23 +01:00 committed by Tim Kleinschmidt
parent 6fde8993ac
commit a6a99cc510
2 changed files with 7 additions and 3 deletions

2
GitKraken.desktop Normal file → Executable file
View file

@ -1,7 +1,7 @@
[Desktop Entry]
Name=GitKraken
Comment=Unleash your repo
Exec=gitkraken
Exec=gitkraken %f
Icon=gitkraken
Terminal=false
Type=Application

8
gitkraken.sh Normal file → Executable file
View file

@ -1,3 +1,7 @@
#!/bin/sh
#!/bin/bash
/opt/gitkraken/gitkraken "$@"
if [[ "$#" == '1' && "${1:0:1}" != '-' ]]; then
exec /opt/gitkraken/gitkraken -p "$1"
else
exec /opt/gitkraken/gitkraken "$@"
fi