Use single desktop file with actions (#149)

* Merge desktop files

Use Desktop Actions instead of installing three different files, this would prevent confusion (see #140) and will make easier to maintain a single desktop entry.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=887466
https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#extra-actions

* Desktop entry cleanup

Translations were removed to start clean and because they need to be updated to match the new Name.
This commit is contained in:
Alfredo Ramos
2018-03-04 05:23:51 -06:00
committed by Dharkael
parent 8d44c4a49d
commit 1bf2829217
4 changed files with 13 additions and 57 deletions

View File

@@ -1,17 +0,0 @@
[Desktop Entry]
Name=Configure Flameshot
Name[es]=Configurar Flameshot
Name[zh_CN]=配置 Flameshot
GenericName=Screenshot tool
GenericName[es]=Herramienta de captura de pantalla
GenericName[zh_CN]=截图工具
Comment=Powerful yet simple to use screenshot software.
Comment[es]=Potente pero simple de usar software de capturas.
Comment[zh_CN]=强大又易用的截图软件
Keywords=flameshot;screenshot;capture;
Keywords[zh_CN]=flameshot;screenshot;capture;截图;
Exec=flameshot config
Icon=flameshot
Terminal=false
Type=Application
Categories=Graphics;

View File

@@ -1,20 +0,0 @@
[Desktop Entry]
Name=Launch Flameshot
Name[es]=Iniciar Flameshot
Name[tr]=Flameshot Başlat
Name[zh_CN]=启动 Flameshot
GenericName=Screenshot tool
GenericName[es]=Herramienta de captura de pantalla
GenericName[tr]=Ekran kayıt aracı
GenericName[zh_CN]=截图工具
Comment=Powerful yet simple to use screenshot software.
Comment[es]=Potente pero simple de usar software de capturas.
Comment[zh_CN]=强大又易用的截图软件
Keywords=flameshot;screenshot;capture;
Keywords[zh_CN]=flameshot;screenshot;capture;截图;
Exec=flameshot
Icon=flameshot
Terminal=false
Type=Application
Categories=Graphics;
StartupNotify=false

View File

@@ -1,20 +1,20 @@
[Desktop Entry]
Name=Take graphical screenshot
Name[es]=Tomar captura gráfica
Name[zh_CN]=进行图形截图
GenericName=Screen capture tool
GenericName[es]=Herramienta de captura de pantalla
GenericName[tr]=Ekran kayıt aracı
GenericName[zh_CN]=屏幕截图工具
Name=Flameshot
GenericName=Screenshot tool
Comment=Powerful yet simple to use screenshot software.
Comment[es]=Potente pero simple de usar software de capturas.
Comment[tr]=Güçlü ve kullanımı kolay ekran kayıt yazılımı.
Comment[zh_CN]=强大又易用的截图软件
Keywords=flameshot;screenshot;capture;
Keywords[zh_CN]=flameshot;screenshot;capture;截图;
Exec=flameshot gui
Exec=flameshot
Icon=flameshot
Terminal=false
Type=Application
Categories=Graphics;
StartupNotify=false
Actions=Configure;Capture;
[Desktop Action Configure]
Name=Configure
Exec=flameshot config
[Desktop Action Capture]
Name=Take screenshot
Exec=flameshot gui

View File

@@ -229,13 +229,8 @@ unix:!macx {
desktopentry.path = $${BASEDIR}$${PREFIX}/share/applications
desktopentry.files = docs/desktopEntry/package/flameshot.desktop
desktopentryinit.path = $${BASEDIR}$${PREFIX}/share/applications
desktopentryinit.files = docs/desktopEntry/package/flameshot-init.desktop
desktopentryconfig.path = $${BASEDIR}$${PREFIX}/share/applications
desktopentryconfig.files = docs/desktopEntry/package/flameshot-config.desktop
servicedbus.path = $${BASEDIR}$${PREFIX}/share/dbus-1/services/
packaging {
servicedbus.files = dbus/package/org.dharkael.Flameshot.service
} else {
@@ -245,8 +240,6 @@ unix:!macx {
INSTALLS += target \
icon \
desktopentry \
desktopentryinit \
desktopentryconfig \
qmfile \
servicedbus \
dbus \