- changed status to open
Chrome not appending file extensions when saving on Linux
I’m running https://microblocks.fun/run-pilot/microblocks.html and have a file open called Midi3.
I’ve made some changes so I’ve saved as Midi4 but it still says Midi3 in title bar and if I goto save again - it still defaults to Midi3
[Note: The problem seems to be that, on Linux, Chrome is not appending the .ubp file extension the way it does on other platforms. See Peter's comment below.]
Comments (9)
-
repo owner -
reporter I've just tried Chrome (Previous was in Vivaldi)
Launched https://microblocks.fun/run-pilot/microblocks.htmlOpened up Midi3
Saved as MidiTest
Looking at files - it seems that the files are not being saved with .ubp sufffix
-
repo owner Hmm. This could be a difference in how Chrome works on Mac OS vs. Linux. What happens if you manually add the .ubp suffix to the file name?
It seems strange that it is not at least updating the name in the IDE. I would expect that to work even if is dropping the .ubp suffix.
-
reporter So I changed Midi3 to Midi4 and added .ubp and it saved and title updated
When I went to save again - it was showing Midi4.ubp
I reloaded the web page and opened Midi4.ubp and when I went to save - it was showing as Midi4.ubp
So it seems it’s just this one file - maybe best to just treat it as a glitch in the matrix! :)
One last thing, when I goto save a brand new project - it just comes up with Untitled not Untitled.ubp - is that expected?
-
reporter FYI I ran up a Windows10 VM and when I go to save a new project there - it shows up as this
implying that it automatically add .ubp
but not so on my Linux Mint main machine
I don’t use the web based IDE much so it’s not a big issue for me
-
repo owner Both of those screenshots are from saving a file while running MicroBlocks in a browser (Chrome or Edge), right? The Chrome file save dialog on Linux is different but it does show ".ubp" in the extension list.
We don't have control over the browser's file save dialog box; that is built into the browser. The same exact Javascript code is running in both cases, but it is presented differently on different platforms.
The real question is whether the browser adds the .ubp extension or wether the user needs to add it manually. Browsers are supposed to work the same on all platforms but sometimes they do not...
-
Chrome on Linux doesn’t add the .ubp extension, you have to do that manually. So every time you have to add it, even after you saved it previously. Or you can click on a previous file to save it under that name.
The project name is only changed in the top bar if you use an .ubp extension in the name. If you for instance use the name test as the file name the name in the topbar is not changed.
-
repo owner Thanks for the explanation, Peter. I'll see if there is a way to add a workaround for Chrome on Linux...
-
repo owner - edited description
- changed title to Chrome not appending file extensions when saving on Linux
- Log in to comment
I can seem to reproduce this problem in Chrome 124.0.6367.62 on Mac OS.
Could there be something unusual about the destination folder path that is preventing the save with the new name from working? Is the project actually getting saved (with either the old or new name)?