#!/bin/sh # ollie-session-here: start a session in the given directory TARGET="$1" [ -f "$TARGET" ] && TARGET="$(dirname "$TARGET")" [ -z "$TARGET" ] && TARGET="$HOME" dbus-send --session --dest=org.ollie.SessionManager --type=method_call \ /org/ollie/SessionManager org.ollie.SessionManager.CreateSession \ string:"$TARGET" string:"" string:"" string:"default" notify-send -t 3000 "Ollie" "Session started in $TARGET"