This is a complaint ~~~ Of course, solutions are also provided ~ Coming soon. this (http://www.linuxidc.com/Linux/2014-05/101212.htm) article describes how to install quartusII13.1 under Ubuntu, the installation function is normal, but there is a & ldquo; small problem & rdquo; it is how to open the qpf file in the File Manager (here is the nautilus manager) by quartusi, instead of the default
This is a complaint ~~~ Of course, solutions are also provided ~ Coming soon.
In this (http://www.linuxidc.com/Linux/2014-05/101212.htm) article we will introduce how to install quartus II 13.1 under Ubuntu, the function is normal after installation, but there is a "small problem" that is how to open the qpf file by quartus II in the File Manager (here is the nautilus Manager), instead of opening it in text by default, before Ubuntu 12.04, right-click the program and choose "open with other programs". If the program (Quartus II) cannot be found in the list, you can browse the program, but after 12.04, this function was castrated .... after a long time, I still don't know how to manage files with the qpf suffix to us II.
-------------------------------------- Split line --------------------------------------
Ubuntu 10.04 FPGA/CPLD Development Environment: Quartus II 9.1 http://www.linuxidc.com/Linux/2010-04/25545.htm
Ubuntu 14.04Download, install, configure related knowledge http://www.linuxidc.com/Linux/2014-04/100370.htm
Ubuntu 14.04: Http://www.linuxidc.com/Linux/2014-04/100352.htm
Ubuntu 14.04 text tutorial on hard drive installation in Windows 7Http://www.linuxidc.com/Linux/2014-04/100369.htm
Install PDF Reader Adobe Reader 9.5.5 http://www.linuxidc.com/linux/2014-04/100845.htm under Ubuntu
Ubuntu 14.04 install Quartus II 13.1 graphic http://www.linuxidc.com/Linux/2014-05/101212.htm
-------------------------------------- Split line --------------------------------------
In this case, I naturally thought of using the file type management function of Ubuntu-tweak, where the corresponding qpf suffix cannot be found at all, you cannot add a new one ~~~
After constantly searching on the search engine, he finally found it and used the xdg-mime command (which is included in the system ).
Xdg-mime-command line tool for querying information about file type
Handling and adding descriptions for new file types
When we use the man command to view the help of xdg-mime, we finally mention how to "register" a new type to the system:
Xdg-mime install shinythings-shiny.xml
Among them, "shinythings-" is the vendor name, while "shiny" is usually the suffix, and the content of this xml is usually:
Shiny new file type
Although I do not quite understand the xml syntax, the above Code is still very easy to modify. One of the code below the comment will know that it is a description or comment on this type, here we change it to "Quartus II Project file type"
While This type should be classified. Since qpf is actually a text, it still belongs to the text class (I know the application class ), therefore, we create a new text subclass for qpf (which I understand) called text/x-quartus,
And then two Obviously, the suffix is specified, and we know that multiple suffixes can be specified. Therefore, the xml content of the qpf file is:
Quartus II Project file type
The xml name is named: quartus-qml.xml
Then execute:
Xdg-mime install quartus-qpf.xml
In this way, we have registered a New Type. After you open ubuntu-tweak, you will find the qpf type.
The next thing to do is to set the default open program for this new mime type (x-quartus:
Xdg-mime default/usr/share/applications/quartus. desktop text/x-quartus
Note that in linux, the mime type is suitable for binding xxx. desktop together rather than directly binding with executable files.
Okay. Check the effect after restarting.
OK, we have enabled the File Manager to open the qpf file directly with quartuⅱ (qar can also be opened), but the qpf file icon is still a text icon, this may be a perfect person, so the next thing to talk about is how to modify it.
A mime-type icon.
Still use the xdg-mime command, which is mentioned at the end of man's Manual
Xdg-icon-resource install -- context text/x-quartus -- size 64/opt/altera/13.1/quartus/adm/quartusii.png text-x-quartus
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2014-05/101213.htm