Bug 279786 - define to open a special extension always with program X does not work
Summary: define to open a special extension always with program X does not work
Status: RESOLVED NOT A BUG
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 1.6.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-10 07:42 UTC by H.H.
Modified: 2012-11-01 21:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description H.H. 2011-08-10 07:42:06 UTC
Version:           1.6.1 (using KDE 4.6.5) 
OS:                Linux

I have a local install of the application "yed" (http://www.yworks.com/de/products_download.php?file=yEd-3.7.0.2.sh), and also have a program-link installed as "/home/myhome/bin/yed".

To reproduce my problem you need a "*.graphml" file (some sort of xml file) , for example install the program and save any graph as a graphml-file.

Dolphin recognizes this file in property-dialog->settings as xml-file.

How to I define in a simple way to always open graphml files with yed?

a) go to file-properties->settings, and add yed as application
==> does not work, because then all xml files are opened with yed

b) right-click open-with->other.. and type "yed" and check the box to remember this application. Then the file is opened with yed, but the setting is not remembered.

Reproducible: Always

Steps to Reproduce:
see above

Actual Results:  
see above

Expected Results:  
see above

OS: Linux (x86_64) release 2.6.34.7-0.5-desktop
Compiler: gcc
Comment 1 Jeroen van Meeuwen (Kolab Systems) 2012-08-24 16:19:47 UTC
Resetting assignee to default as per bug #305719
Comment 2 Adrián Chaves (Gallaecio) 2012-11-01 16:33:11 UTC
You should have asked in the forums how to achieve what you wanted to achieve instead of posting a bug report because you could not figure it out. Please, note that I don’t want to sound harsh, in fact it is really appreciated to have feedback. It’s just that, in this case, the KDE Community forums would have been the right place.

Anyway, this is what you have to do to get it working:
1. Go to the File Associations dialog (available from System Settings).
2. Add a new MIME type. For example: “application/yed”.
3. Select the new MIME type in the tree view, and at least:
    3.1. Add a filename pattern: “*.graphml”.
    3.2. Add “yed” to the program list.
4. If you had Dolphin open, you need to restart it.

Now, you will get those files opened with the right application.

Things you can do:
- Create a new bug report to request the MIME Type for yed files to be added to the lsit of MIME Types KDE supports by default. You should first find out what the right MIME type for that kind of files is (it’s likely not “application/yed”), and then open the feature request.
- Create a new bug report to request some kind of change in Dolphin that would make it easier to do something like what you wanted to do, and more intuitive. I would certainly support you on this, but you would have to clearly define how you think it should work.
Comment 3 H.H. 2012-11-01 17:03:16 UTC
Perhaps you could explain, why both ways a) and b) do not work? Is this behaviour correct?
Comment 4 Adrián Chaves (Gallaecio) 2012-11-01 17:28:20 UTC
The behavior A is correct, you are changing the application with which the XML MIME type must be opened, so the changes will affect to any other file with the same MIME type.

B will have the same effects as A.

About B not being saved, I can’t reproduce that.
Comment 5 Adrián Chaves (Gallaecio) 2012-11-01 21:42:01 UTC
I added a feature request for point 2 (make it possible to change the filetype from Dolphin): https://bugs.kde.org/show_bug.cgi?id=309398