Re: Changing bookmarks file location



Hi,

On Sun, 2008-06-01 at 10:38 -0300, Jonh Wendell wrote:
> Hi, folks.
> 
> In previous Vinagre I am storing the bookmarks file at ~/.gnome2. In
> current version, I would like to move it to ~/.config -
> g_get_user_config_dir().
> 
> What is the best way to do this? Just point to new location and add a
> note on README for previous users telling them to manually move the
> file?
> 
> Any tip?

This has been brought up for a number of projects in GNOME [1].  I
wonder if we could / should reach some consensus on the best way to do
this across all modules?  I've been holding off doing this in yelp
because I can't think of a good way to go about it.

It feels slightly odd adding code to check the "old" location and doing
migration while running the app (even if it is only done once).  On the
other hand, we could add it to the build process, which would screw
anyone building new local copies of modules.  Otherwise, we could just
add a note to the README (which has it's own problems, unless you add it
as a big notice).

There are problems with all approaches when running multiple versions of
GNOME (i.e. jhbuild sessions).  If we unconditionally check and move,
someone somewhere (probably me) is going to use their normal user to log
into a jhbuild session and break their normal build.

Maybe adding code to check while running is the best way.  And maybe I'm
just rambling on and should be quiet.

Don

[1] see http://bugzilla.gnome.org/show_bug.cgi?id=522849 for the yelp
bug, and
http://bugzilla.gnome.org/show_bug.cgi?id=523057
for the tracking bug across the whole of GNOME.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]