ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gtkbfc/gtkbfc-helper
Revision: 1.11
Committed: Thu Oct 9 07:35:43 2008 UTC (15 years, 7 months ago) by root
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +2 -0 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 #!/bin/bash
2
3 export PROMPT="$1"
4 export XID="$2"
5 export FILENAME="$3"
6
7 exec urxvt -geometry 120x16 -transient-for "$2" +sb -e bash -c '
8 echo "gtk bash file chooser"
9 echo "cwd: $PWD"
10 read -p "$PROMPT" -e -r
11 REPLY=$(eval echo "$REPLY")
12 case "$REPLY" in
13 /* ) printf "%s" "$REPLY" >&5 ;;
14 * ) printf "%s/%s" "$PWD" "$REPLY" >&5 ;;
15 esac
16 ' 5>&1
17