blob: 50d759b172e0721d3e09d10110f561e784a951bd [file] [log] [blame]
dkegel@google.comf20da1f2009-06-30 19:16:32 +00001.\"Generated by db2man.xsl. Don't modify this, modify the source.
2.de Sh \" Subsection
3.br
4.if t .Sp
5.ne 5
6.PP
7\fB\\$1\fR
8.PP
9..
10.de Sp \" Vertical space (when we can't use .PP)
11.if t .sp .5v
12.if n .sp
13..
14.de Ip \" List item
15.br
16.ie \\n(.$>=3 .ne \\$3
17.el .ne 3
18.IP "\\$1" \\$2
19..
20.TH "XDG-FILE-DIALOG" 1 "" "" "xdg-file-dialog Manual"
21.SH NAME
22xdg-file-dialog \- command line tool for providing file and directory selection dialogs
23.SH "SYNOPSIS"
24.ad l
25.hy 0
26.HP 16
27\fBxdg\-file\-dialog\fR openfilename [\fB\-\-title\ \fITITLE\fR\fR] [\fIFILENAME\fR]
28.ad
29.hy
30.ad l
31.hy 0
32.HP 16
33\fBxdg\-file\-dialog\fR openfilenamelist [\fB\-\-title\ \fITITLE\fR\fR] [\fIFILENAME\fR]
34.ad
35.hy
36.ad l
37.hy 0
38.HP 16
39\fBxdg\-file\-dialog\fR savefilename [\fB\-\-title\ \fITITLE\fR\fR] [\fIFILENAME\fR]
40.ad
41.hy
42.ad l
43.hy 0
44.HP 16
45\fBxdg\-file\-dialog\fR directory [\fB\-\-title\ \fITITLE\fR\fR] [\fIDIRNAME\fR]
46.ad
47.hy
48.ad l
49.hy 0
50.HP 16
51\fBxdg\-file\-dialog\fR {\fB\fB\-\-help\fR\fR | \fB\fB\-\-manual\fR\fR | \fB\fB\-\-version\fR\fR}
52.ad
53.hy
54
55.SH "DESCRIPTION"
56
57.PP
58The xdg\-file\-dialog program can be used to let the native file selection dialog handle file and directory input\&.
59
60.PP
61xdg\-file\-dialog is for use inside a desktop session only\&. It is not recommended to use xdg\-file\-dialog as root\&.
62
63.SH "COMMANDS"
64
65.TP
66openfilename
67Returns the filename with path for a file to read from\&. \fIFILENAME\fR can optionally be used to specify path and filename of a preselection\&.
68
69.TP
70openfilenamelist
71Returns one or more filenames with path for files to read from, each on a new line\&. \fIFILENAME\fR can optionally be used to specify path and filename of a preselection\&.
72
73.TP
74savefilename
75Returns the filename with path for file to write to\&. \fIFILENAME\fR can optionally be used to specify path and filename of a preselection\&.
76
77.TP
78directory
79Returns the path for an exsiting directory\&. \fIDIRNAME\fR can optionally be used to specify a path of a preselection\&.
80
81.SH "OPTIONS"
82
83.TP
84\fB\-\-title\fR \fITITLE\fR
85Sets the dialog's title (caption) to the specified text\&.
86
87.TP
88\fB\-\-help\fR
89Show command synopsis\&.
90
91.TP
92\fB\-\-manual\fR
93Show this manualpage\&.
94
95.TP
96\fB\-\-version\fR
97Show the xdg\-utils version information\&.
98
99.SH "EXIT CODES"
100
101.PP
102An exit code of 0 indicates success while a non\-zero exit code indicates failure\&. The following failure codes can be returned:
103
104.TP
105\fB1\fR
106Error in command line syntax\&.
107
108.TP
109\fB2\fR
110One of the files passed on the command line did not exist\&.
111
112.TP
113\fB3\fR
114A required tool could not be found\&.
115
116.TP
117\fB4\fR
118The action failed\&.
119
120.SH "EXAMPLES"
121
122.PP
123
124
125.nf
126
127xdg\-file\-dialog savefilename /tmp/foobar\&.png
128
129.fi
130 Asks for a save file name starting in directory /tmp and suggesting foobar\&.png as the filename
131
132.PP
133
134
135.nf
136
137xdg\-file\-dialog directory \-\-title "Select a target folder" /tmp
138
139.fi
140 Asks for a directory name starting in directory /tmp using the text "Select a target folder" as the dialog's title/caption\&.
141
142.SH AUTHOR
143Kevin Krammer.