Use xdg basedir spec on linux

Bug #1871164 reported by Óscar García Amor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient
New
Undecided
Unassigned

Bug Description

https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

Instead of ~/.novaclient, configuration should be in the $XDG_CONFIG_HOME/novaclient/ and cache (safely-deletable files) should be in $XDG_CACHE_HOME/novaclient.

Revision history for this message
Takashi Natsume (natsume-takashi) wrote :

XDG is a project for desktop environments.
The novaclient is a CLI tool that is used in not only desktop environments.

Changed in python-novaclient:
status: New → Incomplete
Revision history for this message
Óscar García Amor (oscar-garcia-amor) wrote : Re: [Bug 1871164] Re: Use xdg basedir spec on linux

@natsume-takashi No, XDG is a standard driven by freedesktop.org but
it doesn't have any (necessary) relation with a desktop environment.

Can read more here
https://wiki.archlinux.org/index.php/XDG_Base_Directory or here
https://www.ctrl.blog/entry/xdg-basedir-scripting.html

The motivation of this standard is to have well-known locations to
make easy things like backups or roaming profiles.

El dom., 12 abr. 2020 a las 4:40, Takashi Natsume
(<email address hidden>) escribió:
>
> XDG is a project for desktop environments.
> The novaclient is a CLI tool that is used in not only desktop environments.
>
> ** Changed in: python-novaclient
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1871164
>
> Title:
> Use xdg basedir spec on linux
>
> Status in python-novaclient:
> Incomplete
>
> Bug description:
> https://specifications.freedesktop.org/basedir-spec/basedir-spec-
> latest.html
>
> Instead of ~/.novaclient, configuration should be in the
> $XDG_CONFIG_HOME/novaclient/ and cache (safely-deletable files) should
> be in $XDG_CACHE_HOME/novaclient.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/python-novaclient/+bug/1871164/+subscriptions

--
Óscar García Amor | ogarcia at moire.org | http://ogarcia.me

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for python-novaclient because there has been no activity for 60 days.]

Changed in python-novaclient:
status: Incomplete → Expired
Revision history for this message
Óscar García Amor (oscar-garcia-amor) wrote :

A small piece of code that can help:

CONFIG_HOME = os.environ.get('XDG_CONFIG_HOME', os.path.join(os.path.expanduser('~'), '.config'))
DATA_HOME = os.environ.get('XDG_DATA_HOME', os.path.join(os.path.expanduser('~'), '.local/share'))
CACHE_HOME = os.environ.get('XDG_CACHE_HOME', os.path.join(os.path.expanduser('~'), '.cache'))

Changed in python-novaclient:
status: Expired → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.