bugGNU Octave - Bugs: bug #36477, use XDG dirs instead of HOME

 
 

bug #36477: use XDG dirs instead of HOME

Submitted by:  Jon McCann <mccann>
Submitted on:  Wed 16 May 2012 03:20:01 AM UTC  
 
Category: Configuration and Build SystemSeverity: 1 - Wish
Priority: 5 - NormalItem Group: Feature Request
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Fri 01 Nov 2013 05:01:39 PM UTC, comment #7:

See also bug #40444 that relates to an analogous request for Windows systems.

Philip Nienhuis <philipnienhuis>
Project Member
Thu 13 Dec 2012 04:17:22 PM UTC, comment #6:

>Do you want the one to make a plan? Can you provide a patch?

Can you point me where .octaverc and .octave_hist are written?

Eric Heintzmann <eheintzmann>
Mon 10 Dec 2012 04:28:31 PM UTC, comment #5:

> What is planned now about FreeDesktop XDG basedir specification for GNU Octave?


Nothing is planned, but it looks like a good idea. Do you want the one to make a plan? Can you provide a patch?

Jordi Gutiérrez Hermoso <jordigh>
Project Administrator
Sun 09 Dec 2012 08:34:00 AM UTC, comment #4:

>At least in Debian Wheezy, looking at all my environment
>variables, the only XDG variable I see is XDG_DATA_DIRS which is
>the less useful for us


There's no need to read the environment variable yourself : most language provide a library to use XDG folder:
with glib/GTK just replace g_get_home_dir() by
g_get_user_config_dir()

Eric Heintzmann <eheintzmann>
Sat 08 Dec 2012 09:45:17 PM UTC, comment #3:

>but is anyone really following this specification?

GNOME,KDE, GTK and many upstream apps support this spec.

Eric Heintzmann <eheintzmann>
Sat 08 Dec 2012 06:26:26 PM UTC, comment #2:

I'm very much in favour of this but is anyone really following this specification? At least in Debian Wheezy, looking at all my environment variables, the only XDG variable I see is XDG_DATA_DIRS which is the less useful for us. From their specification there's default values that should be used when their value is not used.

I meant to have proposed a ~/.octave directory rather than having a .octave_packages, .octaverc and .octave_hist files. But what tI was looking at the GNU Coding standards and didn't saw reference a reference to anything.

Carnë Draug <carandraug>
Project Member
Sat 08 Dec 2012 12:35:08 PM UTC, comment #1:

What is planned now about FreeDesktop XDG basedir specification for GNU Octave?

http://ploum.net/post/207-modify-your-application-to-use-xdg-folders
https://live.gnome.org/GnomeGoals/XDGConfigFolders
http://standards.freedesktop.org/basedir-spec/latest/

Eric Heintzmann <eheintzmann>
Wed 16 May 2012 03:20:01 AM UTC, original submission:

It seems like at least ~/.octaverc and ~/.octave_hist are stored in the home directory. It would be better to use the locations defined in the XDG Base Directory Specification.

https://live.gnome.org/GnomeGoals/XDGConfigFolders
http://standards.freedesktop.org/basedir-spec/latest/

Jon McCann <mccann>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Updated the item)
  • -unavailable- added by jordigh (Posted a comment)
  • -unavailable- added by eheintzmann (Posted a comment)
  • -unavailable- added by mccann (Submitted the item)
  • -unavailable- added by mccann
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 08 Aug 2017 08:48:50 PM UTCmtmillerDependencies-=>bugs #51684 is dependent
    Thu 30 Jul 2015 11:10:32 AM UTCcarandraugDependencies-=>bugs #45652 is dependent
    Sun 22 Feb 2015 01:35:48 AM UTCmtmillerDependencies-=>bugs #40444 is dependent
    Tue 22 Oct 2013 02:23:02 AM UTCmtmillerCategoryNone=>Configuration and Build System
      Severity3 - Normal=>1 - Wish
      Item GroupNone=>Feature Request
      StatusNone=>Confirmed
    Wed 16 May 2012 03:20:01 AM UTCmccannCarbon-Copy-=>Added mccann

    Back to the top


    Powered by Savane 3.1-cleanup1