[dolphin] [Bug 492660] Renaming multiple files removes file extension for unknown file types

xust bugzilla_noreply at kde.org
Wed Mar 19 09:00:26 GMT 2025


https://bugs.kde.org/show_bug.cgi?id=492660

--- Comment #4 from xust <xushitong at uniontech.com> ---
(In reply to xust from comment #3)
> also, this is not a bug of qt, qt reads all mime from system, the idx is not
> included in, see:
> 
>  debian at debian  /usr/share/mime/text  cat x-mpsub.xml                     
>  ✔  959  16:53:10
> <?xml version="1.0" encoding="utf-8"?>
> <mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info"
> type="text/x-mpsub">
>   <!--Created automatically by update-mime-database. DO NOT EDIT!-->
>   <comment>MPlayer subtitles</comment>
>   <comment xml:lang="uk">субтитри MPlayer</comment>
>   <comment xml:lang="sv">MPlayer-undertexter</comment>
>   <comment xml:lang="ru">Субтитры MPlayer</comment>
>   <comment xml:lang="pl">Napisy MPlayer</comment>
>   <comment xml:lang="es">subtítulos de MPlayer</comment>
>   <comment xml:lang="de">MPlayer-Untertitel</comment>
>   <sub-class-of type="text/plain"/>
>   <glob pattern="*.sub"/>
> </mime-type>
> 
> so you can install the mimetype description file or create a file yourself
> to solve this issue.

but I think kio could do some workaround? such as if suffix obtained from
qmimedatabase is empty, do split by dot, and use the last part as suffix? only
if `fullName.split('.').count() >=2`

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list