Public bug reported:

Binary package hint: zenity 2.26.0-0ubuntu2

What I'm trying to do:
Use zenity to select a folder AND provide a default folder. 

The expected behavior is that when a default folder is provided, the
user can select OK and zenity will exit, printing the default folder
path to stdout.

When Running:
$ zenity  --file-selection --directory --filename=$HOME
and selecting OK in the dialog, the following error is rcvd:
"
The folder could not be created
Error creating directory: File exists
"


I also tried the following:
$ zenity  --file-selection --directory --filename=$HOME/

(fwd slash added at end)
Selecting OK does nothing...

Note:
If I run any of those commands, select the parent folder, reselect the desired 
folder and click OK, zenity does exit while printing the correct path to stdout.

** Affects: zenity (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: directory file-selection filename zenity

** Description changed:

  Binary package hint: zenity
  
  What I'm trying to do:
  Use zenity to select a folder AND provide a default folder. 
  
  The expected behavior is that when a default folder is provided, the
  user can select OK and zenity will exit, printing the default folder
- name to stdout.
+ path to stdout.
  
  When Running:
  $ zenity  --file-selection --directory --filename=$HOME
  and selecting OK in the dialog, the following error is rcvd:
  "
  The folder could not be created
  Error creating directory: File exists
  "
  
  I also tried the following:
  $ zenity  --file-selection --directory --filename=$HOME/
  
  (fwd slash added at end)
  Selecting OK does nothing...
  
  Note:
- If I run any of those commands, select the parent folder and reselect the 
desired folder, selecting OK does zenity does exit, printing the correct path 
to stdout.
+ If I run any of those commands, select the parent folder, reselect the 
desired folder and click OK, zenity does exit while printing the correct path 
to stdout.

** Description changed:

- Binary package hint: zenity
+ Binary package hint: zenity 2.26.0-0ubuntu2
  
  What I'm trying to do:
  Use zenity to select a folder AND provide a default folder. 
  
  The expected behavior is that when a default folder is provided, the
  user can select OK and zenity will exit, printing the default folder
  path to stdout.
  
  When Running:
  $ zenity  --file-selection --directory --filename=$HOME
  and selecting OK in the dialog, the following error is rcvd:
  "
  The folder could not be created
  Error creating directory: File exists
  "
  
+ 
  I also tried the following:
  $ zenity  --file-selection --directory --filename=$HOME/
  
  (fwd slash added at end)
  Selecting OK does nothing...
  
  Note:
  If I run any of those commands, select the parent folder, reselect the 
desired folder and click OK, zenity does exit while printing the correct path 
to stdout.

-- 
zenity does not allow selecting default directory (provided with --filename)
https://bugs.launchpad.net/bugs/407558
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to