SUMMARY A markdown file associated with Kate, was opened using Chrome STEPS TO REPRODUCE 1. Double click on the markdown file (README.md) in dolphin. 2. Watch it open in Chrome 3. Change file association property, adding chrome to the list, but dropping it to the bottom. 4. Double click on the file again. OBSERVED RESULT Markdown file ALWAYS opens in the browser. EXPECTED RESULT Markdown file should open using the application it is associated with. SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: Archlinux (available in About System) KDE Plasma Version: 5.21.3 KDE Frameworks Version: 5.80.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION ***** Apr 21 15:35:31 userName systemd[1208]: Started Google Chrome - Web Browser. Apr 21 15:35:32 userName plasmashell[310966]: Opening in existing browser session. *****
> 3. Change file association property, adding chrome to the list, but dropping it to the bottom. How did you do that exactly ? Which application did you use, did you hit apply ? I don't reproduce this bug neither from the file association kcm (in systemsettings) or from the file dialog properties, type association sub-dialog.
Wow, okay, I have no idea what is going on, but I was setting things up so I could record a video for it, and I tested it again without making any changes, but only double-clicking on the readme file, and it opened in kate. I also went back to the original activity I was working in, and it opened fine there as well. I also removed the Chrome entry in file-association properties, and it also opened in kate with no issues. No clue what happened there. I had been changing the file-association properties in dolphin (right-mouse->properties->general->file-type-options). Again, nothing changed, as I was still in that same session as yesterday (no reboot, no logout, no closing of kate/chrome/dolphin, ...). I just woke up, saw your email, switched to another activity which was blank so I could record the process I did, tried clicking the file, and it opened just fine in kate. Bizarre.
> Again, nothing changed, as I was still in that same session as yesterday (no reboot, > no logout, no closing of kate/chrome/dolphin, ...). I just woke up, saw your email, > switched to another activity which was blank so I could record the process I did, tried clicking the file, and it opened just fine in kate. > Bizarre. This can happen when the cache is being updated handled by kservice or its new state hasn't propagated yet, a race condition basically.
I'm familiar with race conditions. However it doesn't explain how it happened to begin with when chrome was NEVER in the list (kate, librewriter, notepad) from the start, until I added it to test if adding then removing it would make a difference. Besides, I would figure race conditions are typically quick, like in ms, or however long it takes for a thread to release hold of whatever it's got locked. Not something that wouldn't go on for an hour, or need multiple hours to release. Not a huge deal or anything. Just an annoyance (just select open-with for the file to force it). Should it happen again, I hope to remember to start up a video capture for evidence.