Use the ".config" folder instead of pooping into user's home directory.

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
pthfdr

Use the ".config" folder instead of pooping into user's home directory.

Unread post by pthfdr » 2018-10-10, 15:27

As the title said. There is clearly a dedicated folder for configuration, yet lots of programs ignore it. PaleMoon included.

Code: Select all

pthfdr@AVENTHEIM:/u/h/pthfdr>ls -Falis
total 40772
 20512    32 drwx------ 5 pthfdr users    20480 10-10 23:02  ./
 20480     0 drwxr-xr-x 4 root   root        16 2018-01-14   ../
458759     0 drwx------ 5 pthfdr users       32 09-10 08:52  .local/
397771     0 drwx------ 3 pthfdr users        8 10-10 23:00 '.moonchild productions'/        ---\
395636     0 drwx------ 3 pthfdr users        8 10-10 23:00  .mozilla/                       ---|
 20528     0 lrwxrwxrwx 1 pthfdr users       16 09-29 20:25  .android -> .local/var/cache/      |
 20594     0 lrwxrwxrwx 1 pthfdr users       16 09-29 20:27  .cache -> .local/var/cache/        |
 20600     0 lrwxrwxrwx 1 pthfdr users       10 09-29 20:27  .config -> .local/etc/       <-----/
 20514     0 lrwxrwxrwx 1 pthfdr users       16 09-29 20:27  .dbus -> .local/var/cache/
 20522     0 lrwxrwxrwx 1 pthfdr users       17 09-29 20:28  .dosbox -> .local/etc/dosbox/
 20527     0 lrwxrwxrwx 1 pthfdr users       16 09-29 20:28  .gnupg -> .local/etc/gnupg/
 20598     0 lrwxrwxrwx 1 pthfdr users       10 05-06 13:08  .gtkrc-2.0 -> /etc/gtkrc
 20523     0 lrwxrwxrwx 1 pthfdr users       15 09-29 20:29  .megaCmd -> .local/etc/MEGA/
 20601     0 lrwxrwxrwx 1 pthfdr users       11 06-02 13:14  .mkshrc -> /etc/mkshrc
131078 40212 -rw------- 1 pthfdr users 41168664 10-10 23:00  palemoon_28.1.0_repack-1_amd64.deb
 20533     0 lrwxrwxrwx 1 pthfdr users       16 09-29 20:29  .pki -> .local/var/cache/
 20531     0 lrwxrwxrwx 1 pthfdr users       16 09-29 20:29  .ssh -> .local/var/cache/
 20534     0 lrwxrwxrwx 1 pthfdr users       16 09-29 20:29  .steam -> .local/etc/steam/
 20519     0 lrwxrwxrwx 1 pthfdr users       33 09-29 20:36  .steampid -> /usr/home/pthfdr/.steam/steam.pid
 86076     0 lrwxrwxrwx 1 pthfdr users       17 10-10 12:39  .tixati -> .local/etc/tixati/
 81926     4 -rw------- 1 pthfdr users      103 10-10 07:37  .Xauthority

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35602
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Use the ".config" folder instead of pooping into user's home directory.

Unread post by Moonchild » 2018-10-10, 16:11

pthfdr wrote:There is clearly a dedicated folder for configuration
According to one group of people. Lots of programs ignore it because many Linux distributions don't agree, and using dot directories in the user's home directory is also standard practice. If you don't want to see it, keep dot directories hidden.

We've discussed this before, see viewtopic.php?f=37&t=6814

Keep in mind that a profile for the browser is a lot more than configuration; it would even be illogical to put it under ~/.config or whatever $XDG_CONFIG_HOME points to, in that respect.
Last edited by Moonchild on 2018-10-10, 16:30, edited 1 time in total.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

pthfdr

Re: Use the ".config" folder instead of pooping into user's home directory.

Unread post by pthfdr » 2018-10-11, 01:55

Well, Mozilla has already have a patch for it: https://bugzilla.mozilla.org/show_bug.cgi?id=259356
Also it seems that you recreate the Desktop and .mozilla folder on every launch, which is completely unnecessary.
Last edited by pthfdr on 2018-10-11, 02:25, edited 2 times in total.

Locked