Try to add a desktop file

This commit is contained in:
ArsenArsen 2017-07-21 09:33:16 +02:00
parent b667c1de09
commit bca220e008
5 changed files with 19 additions and 0 deletions

15
KShare.desktop Executable file
View File

@ -0,0 +1,15 @@
[Desktop Entry]
Name=KShare
Comment=A ShareX inspired cross platform screen capture utility written with Qt.
GenericName=Screenshot Capture Utility
Exec=/usr/bin/kshare
Icon=/usr/share/pixmaps/kshare.png
Type=Application
StartupNotify=false
Categories=Qt;Utility;
StartupWMClass=KSharee
Actions=StartInBackground
[Desktop Action StartInBackground]
Name=Start without showing the window
Exec=kshare -b

View File

@ -24,5 +24,9 @@ package() {
cd "${srcdir}/KShare"
mkdir -p "$pkgdir/usr/bin"
install ./KShare "$pkgdir/usr/bin/kshare"
mkdir -p "$pkgdir/usr/share/pixmaps"
install "${srcdir}/KShare/icons/icon.png"
mkdir -p "$pkgdir/usr/share/applications"
install KShare.desktop "$pkgdir/usr/share/applications"
}