/usr/bin/cd-tkdesk is in tkdesk 2.0-9.1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #!/bin/sh
#
# Usage: cd-tkdesk [directory]
# Changes path of currently active browser to directory, or prints out
# its current path if no arg is given.
if [ $# -gt 0 ]; then
DIR=$1
if [ "$DIR" = "." ]; then
DIR=`pwd`
elif [ "$DIR" = ".." ]; then
DIR=`dirname $(pwd)`
elif [ "x`echo $DIR | grep '^[/~]'`" = "x" ]; then
DIR=`pwd`/$DIR
fi
tkdeskclient "dsk_active dir $DIR" >/dev/null
else
# read TkDesk's current dir from socket
tkdeskclient "dsk_active dir"
fi
|