Extend desktop file and name it according to the freedesktop specification

This commit is contained in:
Janek Bevendorff 2017-10-17 14:12:02 +02:00
parent 72a6c34450
commit b30eb59791
3 changed files with 7 additions and 4 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'> <mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type="application/x-keepass2"> <mime-type type="application/x-keepass2">
<comment>KeePass 2 database</comment> <comment>KeePass 2 Database</comment>
<glob pattern="*.kdbx"/> <glob pattern="*.kdbx"/>
<icon name="application-x-keepassxc"/> <icon name="application-x-keepassxc"/>
</mime-type> </mime-type>

View File

@ -1,13 +1,16 @@
[Desktop Entry] [Desktop Entry]
Name=KeePassXC Name=KeePassXC
GenericName=Community Password Manager GenericName=Password Manager
GenericName[de]=Passwortverwaltung GenericName[de]=Passwortverwaltung
GenericName[es]=Gestor de contraseñas GenericName[es]=Gestor de contraseñas
GenericName[fr]=Gestionnaire de mot de passe GenericName[fr]=Gestionnaire de mot de passe
GenericName[ru]=менеджер паролей GenericName[ru]=менеджер паролей
Comment=Community-driven port of the Windows application KeePass Password Safe
Exec=keepassxc %f Exec=keepassxc %f
TryExec=keepassxc
Icon=keepassxc Icon=keepassxc
Terminal=false Terminal=false
Type=Application Type=Application
Categories=Qt;Utility; Version=1.0
Categories=Utility;Security;Qt
MimeType=application/x-keepass2; MimeType=application/x-keepass2;

View File

@ -42,7 +42,7 @@ parts:
- libyubikey-dev - libyubikey-dev
- libykpers-1-dev - libykpers-1-dev
install: | install: |
sed -i 's|Icon=keepassxc|Icon=${SNAP}/usr/share/icons/hicolor/256x256/apps/keepassxc.png|g' $SNAPCRAFT_PART_INSTALL/usr/share/applications/keepassxc.desktop sed -i 's|Icon=keepassxc|Icon=${SNAP}/usr/share/icons/hicolor/256x256/apps/keepassxc.png|g' $SNAPCRAFT_PART_INSTALL/usr/share/applications/org.keepassxc.desktop
after: [desktop-qt5] after: [desktop-qt5]
# Redefine desktop-qt5 stage packages to work with Ubuntu 17.04 # Redefine desktop-qt5 stage packages to work with Ubuntu 17.04