Move ~/.lmmsrc.xml to canonical config location#8264
Move ~/.lmmsrc.xml to canonical config location#8264sqrvrt wants to merge 4 commits intoLMMS:masterfrom
Conversation
|
I would copy and not move because in my case (and I think at least some other users do this too) I'm running multiple versions of LMMS. I think this could be more likely in the future if there are changes that break backward compatibility. I know a lot of other users who switch from nightly back to alpha, etc, or try out nightly and go back to stable. |
|
My main argument for moving was just somewhat of a clarification that file being observed has moved, but i see the problem. Would probably be good to get the point across in some way though without reading the patch notes, maybe a popup after file copying? |
|
Popup is probably unnecessary. Peki asked me to abstain from touching this for a while, but i'd remove it before merging. |
because nobody would realistically care and documentation and patch notes exist
|
Does this supersede #6005? |
|
Had no idea that existed, although it seems to achieve roughly the same thing. Why wasn't it merged? The only factual difference which i believe to have done better is using Can't really explain the difference in LoC, but at a glance they seem to have rewritten some of the directory initialization code for reorganization purposes, which is moderately tangential to the PR itself. The only edge case in mine is that when a |
|
I believe To this point, I think there are some other advantages to the approach used in #6005, notably the name
Assuming we keep the same format, we could create a symbolic link to the old location with a clear I'm also fine with the file move, since we've never officially supported downgrades, but I think @Monospace-V's request has merit considering how infrequently we release stable versions. |
I think you misunderstand what Qt is trying to say. Qt's As far as |
Yeah, I forgot about the appimage naming bug, but that's orthogonal to the point, it's still the wrong place. I'm sure you could make the argument that I think you'll also find that Linux To the best of my knowledge on Windows these point to the same location. |
They do not, configs are in
Yes, and to clarify, the structure is kept as |
This is a false assumption. Please see similar mistake made here: Canop/broot#103
You're right, I was accidentally looking at
So is base64. I won't die on that hill, if you believe that Linux belongs there, I won't fight it, but Mac doesn't. I compared With regards to Windows, |
I would agree with this and I'm sorry if my previous reply missed this point, but I still feel that this value is functionally Linux-only. On Windows, AppData/Roaming files are intended to move from machine to machine wherase AppData/Local are not. I'm uncertain why Qt chose AppConfigLocation to point to Local and AppDataLocation to point to Roaming, but roaming seems more suitable for the config portions, not for the data/cache portions. This a bit contradictory of a Qt choice, but regardless, I find |
Moves
$HOME/.lmmsrc.xmlto$XDG_CONFIG_HOME/lmms/lmmsrc.xml(and similar dirs in other platforms) to conform to modern standards.Currently in this PR, if file doesn't exist in new location, old one gets copied, and if directory doesn't exist it gets created on startup instead of on write like the file does. Should i move it? Creation also silently fails if directory is somehow unable to be created, though i'm not crazy enough to test if writing a file would still emit a warning.
Worthy of note, since it's now a proper config file, the leading dot is removed. Instead of copying old file could be moved. Current behavior is for testing convenience.