After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 113098 - add specialised support for storing filenames in gconf
add specialised support for storing filenames in gconf
Status: RESOLVED WONTFIX
Product: GConf
Classification: Deprecated
Component: gconf
CVS HEAD
Other Linux
: Normal enhancement
: GNOME2.6
Assigned To: GConf Maintainers
GConf Maintainers
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2003-05-16 04:17 UTC by James Henstridge
Modified: 2018-08-17 13:59 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
the attachment gives the implementation of the two functions gconf_value_set_filename and gconf_value_get_filename (1.71 KB, patch)
2004-04-14 08:07 UTC, Sujay SA and Varadharaj KP
none Details | Review
The patch #26642 reworked (2.62 KB, patch)
2004-05-01 08:19 UTC, Sujay SA and Varadharaj KP
none Details | Review

Description James Henstridge 2003-05-16 04:17:29 UTC
I was thinking about your desktop-devel-list message about storing paths in
gconf:
  http://mail.gnome.org/archives/desktop-devel-list/2003-May/msg00263.html

Rather than making every app handle tilde expansion, maybe it would be
easier to add some functions to the gconf client library for storing
filenames.  Something like gconf_client_get_filename and
gconf_client_set_filename.

The get_filename() version would expand tildes, and the set_filename would
check to see if the filename was contained in the user's home directory,
and replace part of the path with a ~ as needed.

What do you think?
Comment 1 Havoc Pennington 2003-05-16 21:05:23 UTC
It seems pretty reasonable to me.
Comment 2 Mark McLoughlin 2004-03-30 12:25:18 UTC
Of course, one problem with this is that if you use old versions of the new
app which doesn't use get_filename(), it won't expand tilde ..
Comment 3 Sujay SA and Varadharaj KP 2004-04-14 08:07:16 UTC
Created attachment 26642 [details] [review]
the attachment gives the implementation of the two functions gconf_value_set_filename and gconf_value_get_filename

Acc to the desc of the bug the functions should have been named as
gconf_client_set_filename and get_filename. But from the observation it was
evident  that rather than using the these functions in	gconf-client.c, it will
be better to be used in gconf-value.c since it is required to update the key
value rather than the key name itself.

It was observed the there were no key names starting from the home directory
name. Hence 
 the funcions are very useful for setting the key values of string type which
stores absolute
 path name starting from the home directory.
Comment 4 Sujay SA and Varadharaj KP 2004-05-01 08:19:59 UTC
Created attachment 27260 [details] [review]
 The patch #26642 reworked

The implementation of the two functions  gconf_value_set_filename and 
gconf_value_get_filename are reworked so that all the functions and datatypes
used are from glib. The string handling functions  like strlen, strcmp, strcpy
are avoided in the implementation.
Comment 5 Kjartan Maraas 2005-07-03 16:59:52 UTC
Marking the first patch as obsoleted by the second.
Comment 6 André Klapper 2018-08-17 13:59:47 UTC
GConf has been deprecated since 2011.

GConf is not under active development anymore. Its codebase has been archived:
https://gitlab.gnome.org/Archive/gconf/commits/master

dconf and gsettings are its successors. See https://developer.gnome.org/gio/stable/ch34.html and https://developer.gnome.org/GSettings/ for porting info.

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect
reality. Feel free to open a task in GNOME Gitlab if the issue described in this task still applies to a recent + supported version of dconf/gsettings. Thanks!