mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
Ajout des associations de fichiers pour X11 (shared-mime-info)
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@356 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -4,6 +4,7 @@ Exec=qelectrotech
|
|||||||
Icon=qet
|
Icon=qet
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
|
MimeType=application/x-qet-project;application/x-qet-element;
|
||||||
Categories=Office;Qt;VectorGraphics;Science;Electricity;Engineering;
|
Categories=Office;Qt;VectorGraphics;Science;Electricity;Engineering;
|
||||||
Comment=An electric diagrams editor.
|
Comment=An electric diagrams editor.
|
||||||
Comment[fr]=Un éditeur de schémas électriques
|
Comment[fr]=Un éditeur de schémas électriques
|
||||||
|
|||||||
8
misc/x-qet-element.desktop
Normal file
8
misc/x-qet-element.desktop
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Type=MimeType
|
||||||
|
MimeType=application/x-qet-element
|
||||||
|
Icon=qet
|
||||||
|
DefaultApp=qelectrotech
|
||||||
|
Patterns=*.elmt;
|
||||||
|
Comment=QElectroTech element file
|
||||||
|
Comment[fr]=Fichier élément QElectroTech
|
||||||
5
misc/x-qet-element.xml
Normal file
5
misc/x-qet-element.xml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info" type="application/x-qet-element">
|
||||||
|
<comment>QElectroTech element file</comment>
|
||||||
|
<comment xml:lang="fr">Fichier élément QElectroTech</comment>
|
||||||
|
</mime-type>
|
||||||
8
misc/x-qet-project.desktop
Normal file
8
misc/x-qet-project.desktop
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Type=MimeType
|
||||||
|
MimeType=application/x-qet-project
|
||||||
|
Icon=qet
|
||||||
|
DefaultApp=qelectrotech
|
||||||
|
Patterns=*.qet;
|
||||||
|
Comment=QElectroTech project file
|
||||||
|
Comment[fr]=Fichier projet QElectroTech
|
||||||
5
misc/x-qet-project.xml
Normal file
5
misc/x-qet-project.xml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info" type="application/x-qet-project">
|
||||||
|
<comment>QElectroTech project file</comment>
|
||||||
|
<comment xml:lang="fr">Fichier projet QElectroTech</comment>
|
||||||
|
</mime-type>
|
||||||
@@ -11,6 +11,8 @@
|
|||||||
QET_COMMON_COLLECTION_PATH = 'share/qelectrotech/elements/'
|
QET_COMMON_COLLECTION_PATH = 'share/qelectrotech/elements/'
|
||||||
QET_LANG_PATH = 'share/qelectrotech/lang/'
|
QET_LANG_PATH = 'share/qelectrotech/lang/'
|
||||||
QET_LICENSE_PATH = 'doc/qelectrotech/'
|
QET_LICENSE_PATH = 'doc/qelectrotech/'
|
||||||
|
QET_MIME_XML_PATH = '../share/mime/applications/'
|
||||||
|
QET_MIME_DESKTOP_PATH = '../share/mimelnk/applications/'
|
||||||
QET_DESKTOP_PATH = 'share/applications/'
|
QET_DESKTOP_PATH = 'share/applications/'
|
||||||
QET_ICONS_PATH = 'share/icons/'
|
QET_ICONS_PATH = 'share/icons/'
|
||||||
} else {
|
} else {
|
||||||
@@ -191,6 +193,12 @@ copyright.files = LICENSE \
|
|||||||
CREDIT \
|
CREDIT \
|
||||||
README
|
README
|
||||||
|
|
||||||
|
mime_xml.path = $$join(INSTALL_PREFIX,,,$${QET_MIME_XML_PATH})
|
||||||
|
mime_xml.files = misc/x-qet-*.xml
|
||||||
|
|
||||||
|
mime_desktop.path = $$join(INSTALL_PREFIX,,,$${QET_MIME_DESKTOP_PATH})
|
||||||
|
mime_desktop.files = misc/x-qet-*.desktop
|
||||||
|
|
||||||
desktop.path = $$join(INSTALL_PREFIX,,,$${QET_DESKTOP_PATH})
|
desktop.path = $$join(INSTALL_PREFIX,,,$${QET_DESKTOP_PATH})
|
||||||
desktop.files = misc/qelectrotech.desktop
|
desktop.files = misc/qelectrotech.desktop
|
||||||
|
|
||||||
@@ -201,7 +209,7 @@ icons.files = ico/qet.png
|
|||||||
INSTALLS += target elements lang copyright
|
INSTALLS += target elements lang copyright
|
||||||
# Sous Unix, on installe egalement l'icone et un fichier .desktop
|
# Sous Unix, on installe egalement l'icone et un fichier .desktop
|
||||||
unix {
|
unix {
|
||||||
INSTALLS += desktop icons
|
INSTALLS += desktop mime_xml mime_desktop icons
|
||||||
}
|
}
|
||||||
|
|
||||||
# Options de compilation
|
# Options de compilation
|
||||||
|
|||||||
Reference in New Issue
Block a user