OpenUtau icon indicating copy to clipboard operation
OpenUtau copied to clipboard

Data folder on Linux and MacOS should not be visible at $HOME

Open Nyaacinth opened this issue 2 years ago • 4 comments

When OpenUtau running on linux, it will create $HOME/OpenUtau as data directory, but the more reasonable way to save data would be create directory at $XDG_CONFIG_HOME/OpenUtau or $HOME/.config/OpenUtau

Nyaacinth avatar Mar 23 '22 04:03 Nyaacinth

Files in OpenUtau folder can easily reach Gigabytes, which seems too large to put in a hidden directory.

stakira avatar Mar 23 '22 05:03 stakira

Files in OpenUtau folder can easily reach Gigabytes, which seems too large to put in a hidden directory.

However, from the Linux's general standards, the private data folder of an application is better to be located in a non-$HOME location or being hidden. If you are worrying about the downward compatibility of the application, you can provide a option for users to decide the location of data folder, there will be many people loving it.

PS: Temporary fixed by modify $HOME variable

Nyaacinth avatar Mar 23 '22 05:03 Nyaacinth

When using applications on Linux and MacOS, we usually don't want it to put non-hidden files under $HOME and treat it as an unexpected behavior then try to prevent it. And there are many other applications have similar issues, like LMMS. And these applications will generally place the data in other locations or allow the user to choose the location of the data. Really hope OpenUtau will have similar features to do it. Thanks

Nyaacinth avatar Mar 28 '22 09:03 Nyaacinth

+1ing this issue

Files in OpenUtau folder can easily reach Gigabytes, which seems too large to put in a hidden directory.

While this is the case on Windows, on Linux it is more correct and acceptable for data directories created by an application to be hidden ($HOME/.OpenUtau instead of $HOME/OpenUtau ) or to be stored in $HOME/.config or $HOME/.local/share or $HOME/.local/bin

As a point of comparison, games can take up gigabytes of space too (see Dead By Daylight, GTA5, many other games made after 2015) and Steam stores them in $HOME/.local/share/Steam/steamapps/common/

It is a generally understood and accepted practice on UNIX and Linux systems.

Thank you for understanding

HitCoder9768 avatar May 04 '22 00:05 HitCoder9768

Having OpenUtau would be appreciated for following not only just Linux standards, but alternative packaging methods -- If OU were to follow the appropriate environment variable ($XDG_CONFIG_HOME) it would allow for me to flatpak it while giving as little permissions as possible.

orowith2os avatar Sep 02 '22 03:09 orowith2os

Please let me know if the change works

stakira avatar Sep 04 '22 08:09 stakira

Linux Mint user here.

After the update, OpenUtau doesn't link to the user folder (the one w/ the Singers, Templates, etc.) anymore when I try to launch it from the Terminal, it only opens the application without any singer/cache/etc. installed, as if it were a clean copy of the program.

Before everything was smooth, this happened only after I updated. I think that this probably has to do with the change of paths and OU is not able to locate the files anymore.

I don't know if I have to move the contents of the OpenUtau user folder to somewhere else or try to reinstall it, but I wanted to report the issue and I thought that this might be the right thread to use.

The version is the latest, 0.0.879.0.

Thanks

leonardo-ronchi avatar Sep 04 '22 22:09 leonardo-ronchi

You can move the files yourself to new location: $XDG_DATA_HOME/OpenUtau or $HOME/.local/share/OpenUtau And you can delete the old Cache folder. New cache folder is at $XDG_CACHE_HOME/OpenUtau or $HOME/.cache/OpenUtau

stakira avatar Sep 05 '22 04:09 stakira

Wow, finally an official fix for this behavior, thanks to everyone involved in the development!

Nyaacinth avatar Sep 05 '22 05:09 Nyaacinth

Thank you, now everything works as usual!

leonardo-ronchi avatar Sep 05 '22 08:09 leonardo-ronchi