Bug 405783

Summary: "CDDB information.txt" file from audio cd does not open with the app associated to txt files
Product: [Applications] AudioCD-KIO Reporter: Patrick Silva <bugseforuns>
Component: GeneralAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: yurchor
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Patrick Silva 2019-03-23 14:21:08 UTC
SUMMARY
I'm using audiocd-kio 19.03.80 on Arch Linux.
When I right-clik on "CDDB information.txt" file from an audio cd, the first entry in the context menu is "Open with Kate". However, "CDDB information.txt" file opens with an internet browser when double-clicked.

STEPS TO REPRODUCE
1. insert an audio cd
2. open the audio cd with Dolphin
3. open "Information" folder, open any txt file listed

OBSERVED RESULT
the txt file does not open with the app associated to such files

EXPECTED RESULT
the txt file opens with the app associated to txt files

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.15.3
KDE Frameworks Version: 5.56.0
Qt Version: 5.13.0
Comment 1 Yuri Chornoivan 2019-03-23 15:01:00 UTC
Adding

entry.INSERT(KIO::UDSEntry::UDS_MIME_TYPE, QStringLiteral("text/plain"));

into audiocd.cpp:601 allows opening in the default text editor, but only if the file opens with Konqueror. Funny thing. :)

Do not know how to fix it though.
Comment 2 Yuri Chornoivan 2019-03-24 11:42:12 UTC
Git commit eebe295b9381ae7701628d472d1c50d2db7c715b by Yuri Chornoivan.
Committed on 24/03/2019 at 11:41.
Pushed by yurchor into branch 'Applications/19.04'.

Use the correct MIME type for CDDB information.txt

M  +1    -0    audiocd.cpp

https://commits.kde.org/audiocd-kio/eebe295b9381ae7701628d472d1c50d2db7c715b