Add support for directories with spaces
Add support for directories with spaces when launching the scratchpad-terminal. NOTE: The exact same command but with 6 backlashes instead of 8 seems to work just fine. That makes no sense in my head. Either I'm missing something or there is a bug in the escaping of backslashes in i3.
This commit is contained in:
@@ -12,7 +12,11 @@ while getopts "c:e:hn:s" FLAGS; do
|
||||
*) exit 1;;
|
||||
esac
|
||||
done
|
||||
shift $(($OPTIND - 1 ))
|
||||
shift $(($OPTIND - 1))
|
||||
|
||||
if [ "$COMMAND" = "--" ]; then
|
||||
COMMAND="$@"
|
||||
fi
|
||||
|
||||
[ -n "$W_CLASS" ] || return 1
|
||||
[ -n "$W_NAME" ] || return 1
|
||||
|
||||
Reference in New Issue
Block a user