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 639170 - Cannot define different "Open With"s for files of same type, different unkown extension.
Cannot define different "Open With"s for files of same type, different unkown...
Status: RESOLVED DUPLICATE of bug 596382
Product: nautilus
Classification: Core
Component: Preferences
2.30.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-01-10 20:12 UTC by Sietse Brouwer
Modified: 2011-01-10 20:27 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sietse Brouwer 2011-01-10 20:12:04 UTC
Summary
-------

Given a file with an unknown extension, it is impossible to create an Open With association only for files with that extension: the association is made to all files of the same type, and the unknown extension is ignored. 

For example, a plain text file ``test.program`` will always be treated by Nautilus as text/plain, with no way to tell it that we want to treat *.program files differently from other plain text files. Well, no way short of editing the MIME database by non-Nautilus means. Which is nae user-friendly.


Observed behaviour (setup)
-------------------------------------

Create two text files with unregistered extensions::

    echo "asdf" > test.program     # want to open this with gVim
    echo "aoeu" > test.manuscript  # want to open this with gEdit

(Known extensions are listed in ``/usr/share/mime/globs``.)

Nautilus will recognise both as "text/plain", friendly name "plain text document". 

"Open With" associations can be changed via 

  * right-click > Open With > Other Application... > 
    check "Remember this application for 'plain text document";

  * or, alternatively, via right-click > Properties > Open With > radioboxes. 


Observed behaviour (the bit that should go differently)
-------------------------------------------------------

Changing the "Open With" association of either file will change the association for all files of type "text/plain"; thus, if I 

    1. set test.program to open with gVim, and then 
    2. set test.manuscript to open with gEdit, then 
    3. double-clicking test.program will open it in gEdit, and not in gVim.


Desired behaviour
-----------------

That at step 1 and 2 above, we get to choose whether we we want to make the "Open With" association

    * Just this once, or
    * Remember this for all plain text documents with 
      extension .program (or .manuscript), or
    * Remember this for all plain text documents

This will probably require that Nautilus register the new MIME type, say as "text/x-manuscript", or perhaps "text/x-ext-manuscript" --- I know knothing about the MIME system, myself. Also register "text/x-manuscript" as a subclass of "text/plain".
Comment 1 Sietse Brouwer 2011-01-10 20:27:00 UTC

*** This bug has been marked as a duplicate of bug 596382 ***