3
5
Fork
You've already forked xut
3

XDG_CONFIG_HOME to ~/.config if not set #29

Merged
mobinmob merged 1 commit from oSoWoSo/xut:config into master 2025年10月20日 19:46:52 +02:00
Contributor
Copy link
No description provided.

I am not sure what that accomplishes...

I am not sure what that accomplishes...
Author
Contributor
Copy link

If XDG_CONFIG_HOME is not set default to ~/.config

So xutconf can be in:

  • $HOME
  • $XDG_CONFIG_HOME if set
  • or $HOME/.config if not $XDG_CONFIG_HOME set
If XDG_CONFIG_HOME is not set default to ~/.config So xutconf can be in: - $HOME - $XDG_CONFIG_HOME if set - or $HOME/.config if not $XDG_CONFIG_HOME set

That just complicates things :(
It may be better to just leave $HOME/xutconf as an option than to add a third possible location for the conf file.

That just complicates things :( It may be better to just leave $HOME/xutconf as an option than to add a third possible location for the conf file.
Author
Contributor
Copy link

Don't see any complication
I expecting XDG_CONFIG_HOME be $HOME/.config most of the time anyway so...

Don't see any complication I expecting XDG_CONFIG_HOME be $HOME/.config most of the time anyway so...

@zenobit wrote in #29 (comment):

Don't see any complication I expecting XDG_CONFIG_HOME be $HOME/.config most of the time anyway so...

$HOME is always $HOME :P
The issue arises already when suddenly, after a user installs or enables something that defines XDG_CONFIG_HOME everything clones again and their repos are absent...
Maybe the checks should change - first check for $HOME/xutconf, then for $XDG_CONFIG_HOME/xutconf.
I believe that fixes the issue...

@zenobit wrote in https://codeberg.org/mobinmob/xut/pulls/29#issuecomment-7811825: > Don't see any complication I expecting XDG_CONFIG_HOME be $HOME/.config most of the time anyway so... $HOME is always $HOME :P The issue arises already when suddenly, after a user installs or enables something that defines XDG_CONFIG_HOME everything clones again and their repos are absent... Maybe the checks should change - first check for $HOME/xutconf, then for $XDG_CONFIG_HOME/xutconf. I believe that fixes the issue...
Author
Contributor
Copy link

My preffered place is ONLY ~/.config
Don't like cluttering $HOME with any files...

My preffered place is **ONLY** ~/.config Don't like cluttering $HOME with any files...

@zenobit

My preffered place is ONLY ~/.config
Don't like cluttering $HOME with any files...

I m not making xut for myself only - same issue with xlint and proper version/revision strings.
$HOME/.configfile was a de-facto standard, the XGD way is more of a documented one. I want to offer both with as fewer issues as possible.

@zenobit >My preffered place is **ONLY** ~/.config >Don't like cluttering $HOME with any files... I m not making xut for myself only - same issue with xlint and proper version/revision strings. $HOME/.configfile was a de-facto standard, the XGD way is more of a documented one. I want to offer both with as fewer issues as possible.
Sign in to join this conversation.
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mobinmob/xut!29
Reference in a new issue
mobinmob/xut
No description provided.
Delete branch "oSoWoSo/xut:config"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?