Page 1 of 1

Creating a new file association [SOLVED]

Posted: Thu Jul 19, 2012 12:29 am
by Ctulhu
I am using Mint 12 KDE. I often use a mindmapping software called VUE, which allows one to generate a mind map in a GUI and then saves the file as an XML file. In my start menu, I have created a shortcut and icon for it (in the Office section of the start menu, which launches VUE by executing a .jar:

java -jar /home/NAME/PATH/VUE/VUE_3-1-2.jar

What I can't seem to do is create a file type for that. Dolphin looks at the file and classifies it as an HTML document, which means it uses Firefox to open it when I click on it. So I went to System Settings > File Associations > Add / Create a new file type. Not knowing which group to take, I tool the group text (because html/xml is text). I gave that thing a name (VUE Mindmap), gave it an icon, told it to open files like this with Office: VUE, etc. and it doesn't do shit. In Dolphin, .vue files are still considered HTML docs, it still opens with Firefox ...

In Gnome (before this whole Unity crap, that is) , this was all no problem - what's the glitch here, any thoughts?

Re: Creating a new file association

Posted: Thu Jul 19, 2012 6:49 pm
by HughT
Hi Ctulhu, I'm not sure if I can help since I'm using Mint 11 Gnome. But it seems to me that you need a command to open the application first, then open the file with that. For example if I wanted to open a Word document with Libreoffice, I could use the terminal command

Code: Select all

 soffice /Documents/Work/1366953.doc
Obviously I could create a launcher with that command and put it on the desktop or menu. Does that help in any way? regards

Re: Creating a new file association

Posted: Fri Jul 20, 2012 12:37 am
by Ctulhu
Hm, no, because I have a command:

java -jar /home/NAME/PATH/VUE/VUE_3-1-2.jar

The problem is that the File Associations tool doesn't let me override Mint's 'guess' that 'obviously' I want to open an XML/HTML with Firefox by creating a new file association.

Re: Creating a new file association

Posted: Fri Jul 20, 2012 3:22 am
by Oscar799
Moved here by moderator

Re: Creating a new file association

Posted: Fri Jul 20, 2012 7:51 am
by HughT

Re: Creating a new file association

Posted: Mon Sep 24, 2012 12:51 pm
by Ctulhu
I thought I had done that but upon revisiting this, it turned out the link to the jar was broken, duh ... Now it's fine, thanks!