add mime type application/x-pcbnew-pcb, extend Desktop Exec to support a file to open on command line
This commit is contained in:
parent
69dccf19c1
commit
81ef4cd422
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue