add mime type application/x-pcbnew-pcb, extend Desktop Exec to support a file to open on command line

This commit is contained in:
Dick Hollenbeck 2013-12-24 13:07:17 -06:00
parent 69dccf19c1
commit 81ef4cd422
5 changed files with 14 additions and 6 deletions

View File

@ -484,7 +484,7 @@ if( UNIX )
set( UNIX_MIME_DIR resources/linux/mime )
set( UNIX_MIMELNK_FILES ${UNIX_MIME_DIR}/mimelnk )
set( UNIX_MIME_FILES ${UNIX_MIME_DIR}/mime )
set( UNIX_ICONS_FILES ${UNIX_MIME_DIR}/icons )
set( UNIX_ICON_FILES ${UNIX_MIME_DIR}/icons )
set( UNIX_APPLICATIONS_FILES ${UNIX_MIME_DIR}/applications )
# Install Mimelnk directory
@ -494,7 +494,7 @@ if( UNIX )
)
# Install Mime directory
install( DIRECTORY ${UNIX_ICONS_FILES}
install( DIRECTORY ${UNIX_ICON_FILES}
DESTINATION ${CMAKE_INSTALL_PREFIX}/share
COMPONENT resources
)

View File

@ -2,7 +2,7 @@
Categories=Development;Electronics
Comment=Design an electronic schematic
Comment[fr]=Dessiner des schémas électroniques
Exec=eeschema
Exec=eeschema %f
GenericName=Electronic schematic design
GenericName[fr]=Saisie de schéma électronique
Icon=eeschema

View File

@ -2,7 +2,7 @@
Categories=Development;Electronics
Comment=Design a printed circuit board
Comment[fr]=Concevoir un circuit imprimé
Exec=kicad
Exec=kicad %f
GenericName=EDA Suite
GenericName[fr]=Suite logicielle de conception électronique
Icon=kicad

View File

@ -2,10 +2,10 @@
[Desktop Entry]
Categories=Development;Electronics
Comment=Design a printed circuit board
Exec=pcbnew
Exec=pcbnew %f
GenericName=EDA Suite
Icon=pcbnew
MimeType=application/x-pcbnew-project;
MimeType=application/x-pcbnew-pcb;
Name=pcbnew
Type=Application
Name[en_US]=pcbnew

View File

@ -0,0 +1,8 @@
[Desktop Entry]
Type=MimeType
MimeType=application/x-kicad-pcb
Icon=pcbnew
Patterns=*.kicad_pcb
Comment=KiCad Printed Circuit Board
#Comment[fr]=Schéma électronique KiCad