OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 #--------------------------------------------- | 2 #--------------------------------------------- |
3 # xdg-file-dialog | 3 # xdg-file-dialog |
4 # | 4 # |
5 # Utility script to file selection dialogs | 5 # Utility script to file selection dialogs |
6 # on XDG compliant systems. | 6 # on XDG compliant systems. |
7 # | 7 # |
8 # Refer to the usage() function below for usage. | 8 # Refer to the usage() function below for usage. |
9 # | 9 # |
10 # Copyright 2006, Kevin Krammer <kevin.krammer@gmx.at> | 10 # Copyright 2006, Kevin Krammer <kevin.krammer@gmx.at> |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 action=openfilename | 252 action=openfilename |
253 ;; | 253 ;; |
254 | 254 |
255 openfilenamelist) | 255 openfilenamelist) |
256 action=openfilenamelist | 256 action=openfilenamelist |
257 ;; | 257 ;; |
258 | 258 |
259 savefilename) | 259 savefilename) |
260 action=savefilename | 260 action=savefilename |
261 ;; | 261 ;; |
262 | 262 |
263 directory) | 263 directory) |
264 action=directory | 264 action=directory |
265 ;; | 265 ;; |
266 | 266 |
267 *) | 267 *) |
268 exit_failure_syntax "unknown command '$1'" | 268 exit_failure_syntax "unknown command '$1'" |
269 ;; | 269 ;; |
270 esac | 270 esac |
271 | 271 |
272 shift | 272 shift |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 | 354 |
355 gnome|xfce) | 355 gnome|xfce) |
356 directory_zenity "$filename" | 356 directory_zenity "$filename" |
357 ;; | 357 ;; |
358 | 358 |
359 *) | 359 *) |
360 exit_failure_operation_impossible "no method available for opening a dir
ectory dialog" | 360 exit_failure_operation_impossible "no method available for opening a dir
ectory dialog" |
361 ;; | 361 ;; |
362 esac | 362 esac |
363 fi | 363 fi |
OLD | NEW |