-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better default working directory #4288
Conversation
👍
Could you explain why did you change that? |
Tested, works fine. |
Because asking newcomers a confusing question on first install is a bad first impression. |
I agree, but I found some situations where that behavior is undesirable. When the working directory is set by user and moved/deleted/temporarily unable, prompt is still valid. |
A warning is valid. A blocking dialog is the wrong way.
I'm not sure how this is helpful to anyone in this case. They can delete the NEW "bread crumbs" if it's undesired. It's of zero consequence or near-zero consequence.
This dialog offers no contextual evidence that it's temporarily unavailable and the mkdir will silently fail. I'm not sure the use-case here.
That would create unpredictable behavior. It's better to just create the directory in 99.9% of use-cases. We shouldn't be coding to the 1%. I assume the atypical use-case you're describing is a user-space mountpoint where a drive is mounted in |
I use a NTFS partition as the working directory. If LMMS creates the working directory without prompt when the partition is not mounted, it will create a directory which was the path for the partition. That can break several things(bookmarks, other programs' data directories). I think it's unusual, but I think it'd be better to cover such cases. |
Imo in Data, its wrong to force-install things in C: when a user has chosen a different partition as install-point. |
I'm not sure what you're talking about. There's no such thing as
Nothing's being force-installed anywhere, please don't make blanket statements. |
Normally user-space doesn't have access to write to mount points unless fstab has mounted them e.g.
Unless there's some fuse stuff going on. If you can explain how LMMS has access to write to an unmounted directory, I'd like to know.
How though? That's my problem is that you're exploiting a warning to tell you that a drive isn't mounted and that's never what it was intended for. If you want a warning because a custom location that you HAVE ALREADY SET is missing, that seems like a different feature. We shouldn't be displaying these dialogs before the software has loaded. It's bad enough we popup that ridiculous settings dialog. The software should just load to the daw first time, every time. Any other end-user experience is 1990s. :) |
Tested this for a day, accidentally clicked the wrong folder and created a bunch of breadcrumbs. I don't like the dialog and the experience should be better but I'll have to agree with @PhysSong and leave it out of scope for now. Reverted and ready for review/merge. |
Now you confuse me: |
@musikBear, that's unrelated to the working directory. Install LMMS wherever you want. :) |
The problem @musikBear is that you are making up terms. Yes the skeleton directory is created automatically. That's done as a convenience so that when you save something such as a preset or a sample you don't have to create the directory -- or worse -- you create it in a non-relative path and samples and plugins won't load.
The dev team did. Otherwise the folder structure is unobvious and relative paths potentially break. This is a stop-gap courtesy until we introduce portable project files. |
Shouldn't we probe for |
Sure. |
Look for |
Done via 052eedc. Ready for testing/review. |
Works as intended. |
@tresf Why did you close this? |
Branch cleanup, it was a mistake. |
* Better default working directory Closes LMMS#1135
Better behavior of default working directory:
~/.lmmsrc.xml
) will default to the more browsable, more sane and less conflicting~/Documents/lmms
.* No longer prompt to create the home directory.Note: The Qt4 logic is currently untested.
Closes #1135