You are not logged in.

#1 2016-03-25 15:12:14

evotopid
Member
From: Switzerland
Registered: 2013-02-03
Posts: 8

Configuring profile path of a package

Lately I have been cleaning up my "Documents" folder (I want to get rid of it and only have a "Dokumente" folder big_smile) and an application whose folder always keeps being created there is Anki.
There is the possibility to pass the profile path as a command line argument Anki. So as a specific workaround for myself I can add the parameter in the .desktop file.

However this makes me wonder if this is the right way to do it or if there is a better mechanism to provide this kind of package level configuration in Arch?
Personally I feel like "~/Documents/Anki" might be the wrong location for this kind of profile data and it would be better located in "~/.Anki" or "~/.anki" however I am not sure if this constitutes an actual packaging bug or if Arch considers upstream's default decisison to be the right one in this case? Any opinions on this?

Offline

#2 2016-03-25 15:44:54

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Configuring profile path of a package

Moving from Arch Discussion to Applications & Desktop Environments.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#3 2016-03-25 15:45:35

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Configuring profile path of a package

I'm not a dev/TU, but as a rule packages stick to upstream as much as possible. At least that's my understanding. IOW regardless of anyone's opinion of upstream choice, I doubt it would be accepted as a packaging bug.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#4 2016-03-26 09:12:14

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Configuring profile path of a package

If you are annoyed on seeing the Documents folder, you can set the documents directory to some other directory (preferably a hidden one).

See: https://wiki.archlinux.org/index.php/Xd … irectories

Offline

#5 2016-03-26 20:36:41

evotopid
Member
From: Switzerland
Registered: 2013-02-03
Posts: 8

Re: Configuring profile path of a package

Thanks x33a I didn't know there was xdg-user-dirs. Configuring it was really as easy as it sounds and Anki respects its configuration (however I will probably still go with my first mentioned workaround but keep xdg-user-dirs for future applications). I still believe that this directory would have been better be located in "~/.anki" by default because it essentially stores configuration and profile data but if consensus is to just respect this upstream decision then I guess I am kind of ok with that.

Offline

#6 2016-03-27 12:34:57

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Configuring profile path of a package

I was going to ask you to open an upstream feature request, but apparently this issue has been raised multiple times in the past.

https://github.com/dae/anki/pull/58

In any case, don't expect our packagers to modify upstream choices.

Offline

Board footer

Powered by FluxBB