Freeze file name during use

• Apr 8, 2018 - 10:48
Type
Functional
Severity
S5 - Suggestion
Status
active
Regression
No
Workaround
No
Project
  1. Open any MS file;
  2. While it is still open in MS, go to the file folder and change the name of the file (or even just the letter-case of one letter);
  3. Open the "new" file;
  4. You can carry on this process indefinitely;
  5. Close and reopen MuseScore;
  6. Notice that there are now multiple instances of the same file in the "Open recent" list and you can open all of them.

Comments

Status (old) active needs info
Status active needs info

What about this do you consider a bug? Does something about it violate the user interface standards of your particular OS?

Yes, I know what file locking is, but the point is, when not actively writing a file, it isn't actually necessary to lock it, and lots of programs (most?) don't.

Status (old) needs info active
Status needs info active

Update:

  1. Create a new file;
  2. Save it as "ABC" (on the desktop, say);
  3. While "ABC" is still open, change its name (outside the program) to "CDE";
  4. Open the "new" file, CDE.
    Result: You now have two instances of the same file open in MuseScore.
  5. Close and reopen MS. Look at the "Open recent" list.
    Result: As expected, only the last saved file is shown.
  6. Repeat the above instructions, 1-4, but only change the letter-case of one letter in step 3.
    Result: Same as above
  7. Now close and reopen MS and look at the "Open recent" list.
    Result: This time all the instances of the same file are listed and all can be opened.
Status (old) active needs info
Status active needs info

Again, please explain what.the standards for your particular OS say about this and in what way the behavior of MuseScore violates this. Not locking a file unnecessarily is completely valid in, for example Windows, and you will note it is how Microsoft's own programs such as Wordpad work.

It's possible some other OS says this should not be allowed, though, and that is the info I am looking for.

The case issue is also standard Windows behavior - file names are not case sensitive. Other OS's behave differently.

Title File name can be changed when in use Freeze file name during use
Severity S4 - Minor S5 - Suggestion
Status needs info active
Reported version 2.1  
Regression No
Workaround No

I don't see multiple instances in the recent file list, but I agree that the file name should freeze during use. Actually, I don't see why it shouldn't be designed that way. If user renames a file already opened in MuseScore, attempting to save it afterwards will do Save As (triggering a explorer dialogue) instead. This can be confusing sometimes, when you don't know what you did wrong.

In reply to by Howard-C

Two strategies exist.
Notepad++ doesn't lock opened files BUT actively monitors the disk and let you know if the file has been deleted or modified by another program (that includes renaming by the shell).
Word or Excel lock opened files which is for that type of software where lot of people can open shared files the only valid strategy. If a file is locked you can still open it readonly or ask to monitor when the lock is released.
If MuseScore is serious about being used by, e.g., students working on files from a shared class folder, then the "Word & Excel" seems to be preferable isn'it?

I still say, few other programs I know lock files unnecessarily, and I suspect it violates every OS' design standards.

But regarding notification of changes - good point, worth considering from a design perspective how this could be improved.

I have Sibelius First, and Finale Notepad, and both behave like virtually every other program I know: they couldn't care less if you rename, move, or delete a file whether it happens to be open or not.