summaryrefslogtreecommitdiff
path: root/help/C/l10n_scripts/text_info.sh
blob: 711e51d838d6d93577e56a8918074168654945e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

FILE=`zenity --file-selection \
  --title="Select a File"`

case $? in
         0)
                zenity --text-info \
                  --title=$FILE \
                  --filename=$FILE \
                  --editable 2>/tmp/tmp.txt;;
         1)
                echo "No file selected.";;
        -1)
                echo "No file selected.";;
esac

bgstack15