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 534134 - Gnumeric does not seem to support XDG Base Directory Specification
Gnumeric does not seem to support XDG Base Directory Specification
Status: RESOLVED OBSOLETE
Product: Gnumeric
Classification: Applications
Component: General
1.10.x
Other All
: Normal enhancement
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2008-05-21 04:04 UTC by W. Michael Petullo
Modified: 2018-05-22 13:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to re-implement -D and -L (2.39 KB, patch)
2008-05-23 02:26 UTC, W. Michael Petullo
none Details | Review
Patch to re-implement -D and -L (3.63 KB, patch)
2008-05-23 02:30 UTC, W. Michael Petullo
none Details | Review
Patch to re-implement -D and -L (4.01 KB, patch)
2010-04-10 01:05 UTC, W. Michael Petullo
needs-work Details | Review
Patch to re-implement -D and -L (4.45 KB, patch)
2010-05-03 20:45 UTC, W. Michael Petullo
needs-work Details | Review

Description W. Michael Petullo 2008-05-21 04:04:31 UTC
The XDG Base Directory Specification defines how an application can set various system paths at runtime. 

Supporting this standard will make it possible to integrate gnumeric more tightly into Mac OS X using application bundles and GTK+'s native Mac OS X code. Previous versions of gnumeric supported the -D and -L parameter, setting the program's shared data and library directories, respectively. However, this does not seem to be in 1.9 (though it is listed by --help-all). If reimplementing the feature, the XDG specification might as well be supported instead.

See http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html for the XDG Base Directory Standard.

See http://www.flyn.org/apple/index.html for my work with bundling gnumeric for Mac OS X.
Comment 1 W. Michael Petullo 2008-05-23 02:26:15 UTC
Created attachment 111379 [details] [review]
Patch to re-implement -D and -L

I use this patch to re-implement the -D and -L arguments. It does not implement the XDG Base Directory Specification, but I am able to use it to create a gnumeric application bundle for Mac OS X.
Comment 2 W. Michael Petullo 2008-05-23 02:30:39 UTC
Created attachment 111380 [details] [review]
Patch to re-implement -D and -L

I use this patch to re-implement the -D and -L arguments. It does not implement
the XDG Base Directory Specification, but I am able to use it to create a
gnumeric application bundle for Mac OS X.

I attached the wrong patch in the previous comment.
Comment 3 W. Michael Petullo 2010-04-10 01:05:01 UTC
Created attachment 158349 [details] [review]
Patch to re-implement -D and -L

I use this patch to re-implement the -D and -L arguments. It does not implement
the XDG Base Directory Specification, but I am able to use it to create a
gnumeric application bundle for Mac OS X.

This version of the patch applies against gnumeric 1.10.1.
Comment 4 Morten Welinder 2010-04-12 01:46:22 UTC
Review of attachment 158349 [details] [review]:

Interesting.

I note that it uses g_win32_get_package_installation_directory which is deprecated,
see http://library.gnome.org/devel/glib/stable/glib-Windows-Compatibility-Functions.html
Also, it would appear that it leaks the result of that function.

Apart from that, I don't see why we can't do this.
Comment 5 W. Michael Petullo 2010-05-03 20:45:22 UTC
Created attachment 160225 [details] [review]
Patch to re-implement -D and -L

I use this patch to re-implement the -D and -L arguments. It does not implement
the XDG Base Directory Specification, but I am able to use it to create a
gnumeric application bundle for Mac OS X.

This version of the patch applies against gnumeric Git as of May 3rd, 2010.
Comment 6 Morten Welinder 2010-05-04 00:46:19 UTC
Review of attachment 160225 [details] [review]:

You ignored my review of your previous patch.  It still applies.

https://bugzilla.gnome.org/show_bug.cgi?id=534134#c4
Comment 7 W. Michael Petullo 2010-05-04 22:13:14 UTC
The most recent patch uses g_win32_get_package_installation_directory_of_module instead of g_win32_get_package_installation_directory. The return value of g_win32_get_package_installation_directoryX is free'd (and was in the previous patch too).
Comment 9 Morten Welinder 2012-12-01 21:03:24 UTC
It missed the 1.11.x development series.

The patch in attachment 160225 [details] [review] still leaks the result from
g_win32_get_package_installation_directory.  g_build_filename will
not free it.

In fact, the two attachment look so very much alike that I suspect
the second wrong does not contain what it was meant to contain.
Comment 10 GNOME Infrastructure Team 2018-05-22 13:27:54 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnumeric/issues/101.