Skip to content

Please follow the freedesktop base dir specs #1514

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
goodmind opened this issue Oct 3, 2015 · 27 comments
Closed

Please follow the freedesktop base dir specs #1514

goodmind opened this issue Oct 3, 2015 · 27 comments
Labels
conclusion: declined Will not be worked on os: linux Specific to Linux operating system topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@goodmind
Copy link

goodmind commented Oct 3, 2015

See: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html

Additional context

Additional requests

@ffissore
Copy link

ffissore commented Oct 6, 2015

Can you briefly clarify what we are not doing and how we should do it?

@ffissore ffissore self-assigned this Oct 6, 2015
@goodmind
Copy link
Author

goodmind commented Oct 6, 2015

Hello,

Place user config directory of Arduino IDE (~/.arduino15) in folder that defined by $XDG_CONFIG_HOME or ~/.config (~/.config/arduino15)

@ffissore
Copy link

ffissore commented Oct 6, 2015

Thank for you suggestion. However, I'm closing this as wontfix. Many apps store their conf in folders other from .config. We won't change an old feature such as using ~/.arduino15, even if not compliant with freedesktop standards

@ffissore ffissore closed this as completed Oct 6, 2015
@matthijskooijman
Copy link

I guess migrating to ~/.config might be useful at some point (perhaps also putting toolchains etc. in ~/.local/lib or so), but it's tricky to get the upgrade path right I'm afraid.

@goodmind
Copy link
Author

goodmind commented Oct 6, 2015

But also many apps use ~/.config

@Abdillah
Copy link

@matthijskooijman Is it that hard?

@A6GibKm
Copy link

A6GibKm commented Aug 30, 2019

You can always set ~/.arduino15 as a fallback. No need to deprecate it.

@lhanson

This comment was marked as duplicate.

@lhanson

This comment was marked as outdated.

@matthijskooijman
Copy link

@cmaglie, @facchinm, I think it might be good to reconsider this issue, maybe at least reopen it to indicate it should be done at some point. Since this update can be done fairly gracefully, it could just be implemented, or we could consider waiting for 1.9 or even 2.0 (alternatively, we could implement this now, and then in 2.0 do an active migration moving files out of ~/.arduino15).

Looks like there is a patch already (haven't looked at the patch yet). The upgrade path seems to be to use the old directory if it exists, or start using the new standards-compliant paths otherwise.

One migration issue that should also be fixed is that of documentation. The are probably docs that point to ~/.arduino15, which need to be updated. Of course a lot of these are on webpages outside of our control, but I guess they need to update themselves once this is released.

Maybe this is also a good moment to drop the "15" suffix from the config dir (e.g. use ~/.config/arduino)? And probably also fix the related arduino/arduino-cli#2115.

@facchinm
Copy link
Member

@mastrolinux @cmaglie can we discuss a bit @matthijskooijman 's proposal ?

@Thovthe
Copy link

Thovthe commented Apr 5, 2020

Doing this makes sense. I would say lets use @Perlovka's patch but I'm not sure about leaving the file as arduino15, though, I must admit not knowing the exact reason it was called that in the first place.

@A6GibKm

This comment was marked as off-topic.

@Avamander
Copy link

This decision should be revisited because it was made five years ago and now is even more outdated than it was back then.

@lhanson

This comment was marked as duplicate.

@TheEvilSkeleton

This comment was marked as off-topic.

@ghost

This comment was marked as duplicate.

@rhysday

This comment was marked as duplicate.

@Perlovka

This comment was marked as outdated.

@kalj

This comment was marked as duplicate.

@tworthington

This comment was marked as off-topic.

@Avamander

This comment was marked as off-topic.

@Batwam

This comment was marked as duplicate.

@Kreijstal

This comment was marked as duplicate.

@ignamartinoli

This comment was marked as duplicate.

@eliaskanelis
Copy link

Thank for you suggestion. However, I'm closing this as wontfix. Many apps store their conf in folders other from .config. We won't change an old feature such as using ~/.arduino15, even if not compliant with freedesktop standards

You can always leave the old path as backward compatible. It is really not that hard to satisfy XDG standards while keeping backwards compatibility.

@per1234 per1234 transferred this issue from arduino/Arduino Oct 2, 2022
@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself os: linux Specific to Linux operating system labels Jan 22, 2023
@per1234 per1234 added the conclusion: declined Will not be worked on label Mar 17, 2023
@varaskkar

This comment was marked as duplicate.

@arduino arduino locked as resolved and limited conversation to collaborators Nov 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
conclusion: declined Will not be worked on os: linux Specific to Linux operating system topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests