After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 566477 - .desktop files have no file type application associated
.desktop files have no file type application associated
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: File Properties Dialog
3.16.x
Other All
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-01-04 05:56 UTC by Bernhard Koenig
Modified: 2016-03-07 20:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Clearing the bug 566477 (1.01 KB, patch)
2016-03-04 14:48 UTC, Akilan Elango
none Details | Review
Clearing the bug 566477 - adding mime type application/x-desktop in "Text File" mime type (1.72 KB, patch)
2016-03-05 05:40 UTC, Akilan Elango
none Details | Review
fixing the issue as well as some additions (1.81 KB, patch)
2016-03-06 17:36 UTC, Akilan Elango
none Details | Review
files-view: add Open With App menu item for all items (1.65 KB, patch)
2016-03-06 18:04 UTC, Akilan Elango
none Details | Review
files-view: add Open With App menu item for all items (1.65 KB, patch)
2016-03-06 21:10 UTC, Akilan Elango
committed Details | Review

Description Bernhard Koenig 2009-01-04 05:56:00 UTC
Please describe the problem:
Say I go to ~/.local/share/applications in nautilus and right-click on firefox.desktop (or any other .desktop file), then I cannot choose to open it with a text editor. If I go to "file properties" of a .desktop file, I have no tab to let me choose the "Open with ...". I think this is a bug because I might want to open .desktop files with a text editor sometimes.

Steps to reproduce:
1. Open nautilus
2. Go to  ~/.local/share/applications
3. Right-click on a .desktop file


Actual results:
Missing the option of "Open with ..."

Expected results:
Have an option to open with a text editor.

Does this happen every time?
yes

Other information:
Comment 1 Akilan Elango 2016-03-04 14:48:46 UTC
Created attachment 323094 [details] [review]
Clearing the bug 566477

Now the desktop files can be launched by double clicking. But to edit it : Right click and go for "Open With ...". Of course if any application associated with that type (application/x-desktop) or that are capable of opening such files it will be found in the menu or you have to select the program from the list of all programs.
Comment 2 Akilan Elango 2016-03-05 05:40:29 UTC
Created attachment 323138 [details] [review]
Clearing the bug 566477 - adding mime type application/x-desktop in "Text File" mime type

Patch reworked with addind "application/x-desktop" under "Text File" Mime Type.
Comment 3 Akilan Elango 2016-03-06 17:36:09 UTC
Created attachment 323201 [details] [review]
fixing the issue as well as some additions

Now "Open with application" is added in the context menu for all instances except when right clicked in empty space in nautilus.
Comment 4 Akilan Elango 2016-03-06 18:04:47 UTC
Created attachment 323202 [details] [review]
files-view: add Open With App menu item for all items
Comment 5 Akilan Elango 2016-03-06 21:10:15 UTC
Created attachment 323211 [details] [review]
files-view: add Open With App menu item for all items
Comment 6 Carlos Soriano 2016-03-06 21:19:10 UTC
Review of attachment 323211 [details] [review]:

Looks good now, thanks!
Comment 7 Carlos Soriano 2016-03-07 20:11:52 UTC
Attachment 323211 [details] pushed as cedea77 - files-view: add Open With App menu item for all items