https://bugs.kde.org/show_bug.cgi?id=481035
Bug ID: 481035 Summary: New custom Known Type in File Associations is ignored Classification: Plasma Product: kwin Version: 5.27.10 Platform: openSUSE OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: kwin-bugs-n...@kde.org Reporter: i...@chello.at Target Milestone: --- Created attachment 165655 --> https://bugs.kde.org/attachment.cgi?id=165655&action=edit Screenshot of file association SUMMARY See also SU: How to set a shell script as KDE file association – https://superuser.com/q/1828467/516482 I'm connecting to a Win10 with an .rdp file supplied by Citrix Netscaler Gateway via download in my FF. I wrote a shell script that takes the .rdp file as $1 and it works on Bash's cmd line: #!/bin/bash ... xfreerdp "$1" /monitors:0,2 /floatbar:sticky:off,default:hidden,show:always /u:<...> /p:<...> ... To be able to run this script from within GUI apps I created a new File Association with Known Type: application/rdp. *.RDP, *.rdp already was assigned to Known Type: x-remmina (which worked with .rdp files as intended) so I moved them from there to my new one: See attachment for a screenshot. There's a ~/.local/share/applications/Bash-RDP.desktop. In FF I have set Applications -> Content Type: RDP file, Action: Use (default). This neither works as intended when opening the downloaded .rdp in FF's downloads drop-down or Downloads Library nor in my Downloads folder in Dolphin. If I do so xfreerdp appears in the taskbar with a progress circle for a few seconds only and without any further visual representation. And an xfreerdp task remains at every try which I have to kill afterwards. After a few hours of try and error and after asking a question at SuperUser ( https://superuser.com/q/1826544/516482 ) I came to the following conclusion: My new File Association is ignored. The previous one assigned to *.rdp is still used: x-remmina. How do I know? Well, xfreerdp was the first in its Application Preference Order. I moved it one down so that Kate was at the top. Selecting an .rdp file by double-clicking it in Dolphin opened it in Kate. See second and third attachment once I can upload more here. STEPS TO REPRODUCE 1. + Add... File Association -> Known Type -> Group: application, Type name: txt 2. Select Known Type text/plain, – Remove Filename Pattern: *.txt 3. + Add... Filename Pattern: *.txt to the Known Type: application/txt created at 1. 4. ✓Apply (otherwise the new Known Type isn't shown in the further [I think this is a bug by itself]) 5. + Add... Application: Mousepad 6. ✓Apply It looks fine now, but double-clicking a .txt file in Dolphin still opens it in Kate. OK, let's dig deeper: 7. 🖋️ Edit... Application: Mousepad 7.1. This is confusing. There is an application to Open With: (Kate) on the General tab and there's a Program: to run (Mousepad) on the Application tab, which can be different(?!?). 7.2. With selecting Change... it becomes even more confusing: A dialog opens with the same controls as on the File type group in File Associations and you can perform an endless loop now with: 7.2.1. Edit... Application: Mousepad 7.2.2. Open With: ... Change... 7.2.3. GOTO 7.2.1. OBSERVED RESULT Files of a Filename Pattern defined in a new custom File Association do not open with the application defined there. EXPECTED RESULT .rdp, & .RDP files should open in the Application of the File Association they are defined in. SOFTWARE/OS VERSIONS Linux/KDE Plasma: openSUSE Tumbleweed 20240201 KDE Plasma Version: 5.27.10 KDE Frameworks Version: 5.114.0 Qt Version: 5.15.12 -- You are receiving this mail because: You are watching all bug changes.