! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Wallpaper changer: remember last path
Status:
RESOLVED: FIXED
Severity:
enhancement
Product:
Xfdesktop
Component:
General

Comments

Description santix91 2012-04-02 06:35:07 CEST
If the user adds a file to the list of images available to be used as wallpapers and after that wants to load a new image, the file browser points to the list of recently used files. 

The expected behavior would be for it to point to the directory where the last image that was added is located.
Comment 1 Nick Schermer editbugs 2012-04-02 09:16:46 CEST
See also https://bugzilla.gnome.org/show_bug.cgi?id=658280

But we can set a folder too from the interface.
Comment 2 Eric Koegel editbugs 2012-04-05 13:17:39 CEST
Created attachment 4300 
Remember the directory of the last image added in the settings app

The patch adds a last-file-added property to keep track of the
directory last used and defaults to it on future uses. If that
property isn't set it will default to using the base directory
of the last-image property and use the gtk recent docs directory
should both fail.
Comment 3 Stephan Arts editbugs 2012-04-05 13:27:06 CEST
You might want to clean up that patch...
Comment 4 Eric Koegel editbugs 2012-04-05 15:35:22 CEST
Created attachment 4302 
Remember the directory of the last image added in the settings app

Cleaned up the previous patch, let me know if there's a better way.
Comment 5 Nick Schermer editbugs 2012-04-05 15:43:45 CEST
A new property is a bit too much if you'd ask me. Can't we extract the parent dir of the selected image-path (or the first of a list) and set that in gtk_file_chooser_set_current_folder?
Comment 6 Eric Koegel editbugs 2012-04-07 14:13:04 CEST
Created attachment 4306 
Use parent folder of selected image

This patch should do just that, it uses the first image in the selection list.
Comment 7 Simon Steinbeiss editbugs 2013-11-26 13:14:29 CET
This problem doesn't occur anymore with xfdesktop4.11

Bug #8618

Reported by:
santix91
Reported on: 2012-04-02
Last modified on: 2013-11-26

People

Assignee:
Eric Koegel
CC List:
6 users

Version

Attachments

Additional information