https://bugs.kde.org/show_bug.cgi?id=394938
--- Comment #6 from Nikita Melnichenko <nikita+...@melnichenko.name> --- (In reply to amilino from comment #5) > Why do we have .desktop files, they > should be shortcuts to execute something right? They are shortcuts for a menu or a desktop [1]: In GNOME and other freedesktop.org-compliant desktops, an application gets registered into the desktop's menus through a desktop entry, which is a text file with .desktop extension. This desktop file contains a listing of the configurations for your application. The desktop takes the information in this file and uses it to: put the application in the Main Menu. To find a list of valid categories, take a look into FreeDesktop.org's Desktop Menu Specification. list the application in the Run Application... dialog create appropriate launchers in the menu or on the desktop. associate the name and description of the application. use the appropriate icon. recognize the MIME types it supports for opening files. > What is the use case to open > .desktop file in some default text editor like Kate. Who needs that. :) We do this for any text file. Consistency. You can modify association with this mime type and associate a program to run a desktop file. Don't ask me, I don't know such an app. :) > If you have "Exec" in desktop file then it should be executed or should I > open it in Kate and copy/paste command in Terminal. :) Simply use a one-line shell script instead of a desktop file. Since it is implemented in Dolphin, then someone else has cared about at some point in time and it becomes a signal that Krusader may need this as well. However, the current way Dolphin does it (by modifying contents and permissions) is a really bad practice. If you suggest to implement it differently, then we'll consider, but I think it should be governed by an external app and you simply set an appropriate association. [1] https://developer.gnome.org/integration-guide/stable/desktop-files.html.en -- You are receiving this mail because: You are watching all bug changes.