[Bug 191847] Icons and apps should be based on filetype, not extension

Jeffrey G Thomas eljefedelito at gmail.com
Wed May 6 21:37:46 BST 2009


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


Jeffrey G Thomas <eljefedelito at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eljefedelito at gmail.com




--- Comment #2 from Jeffrey G Thomas <eljefedelito gmail com>  2009-05-06 22:37:45 ---
If a file doesn't have a file extension it doesn't have the proper icon for its
file type.

If a file has the wrong extension, the wrong app will try to open that file
based on its extension and not on its file type.

The issue is that files shouldn't be handled based on their extension. 
Discussions like this are all over the place:
http://www.linuxquestions.org/questions/linux-newbie-8/linux-file-extension-vs-dos-file-extension-44530/
and yet they don't really hold up to be true within KDE.

If I have a file 'shopping.odt' and rename it 'shopping.mp3' then Amarok or
another music app will try to open it.

Seems to work fine if a file has _no_ extension but sometimes files are named
with dots:
shopping.2009.sh
where '.sh' may refer to any number of things (such as someone's initials), not
just a shell script.

So I would think that we want to treat a file according to its actual file type
(such as the way /usr/bin/file does) rather than according to some
possibly-incorrect extension.

This would also prevent a user from possibly clicking on a video.avi file which
may not actually be a video and may somehow cause problems (buffer overflow,
windows executable, who knows what).

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Unassigned-bugs mailing list