mirror of
https://github.com/KDE/latte-dock.git
synced 2024-12-23 01:33:50 +03:00
update metadata desktop file to new guidelines
--update the desktop file naming in order to comply with new guidelines. Concerning also wayland. The new desktop file is named to org.kde.latte-dock.desktop
This commit is contained in:
parent
b1c0131600
commit
86855e03cb
@ -51,9 +51,9 @@ if(HAVE_X11)
|
||||
)
|
||||
endif()
|
||||
|
||||
configure_file(latte-dock.desktop.cmake latte-dock.desktop)
|
||||
configure_file(org.kde.latte-dock.desktop.cmake org.kde.latte-dock.desktop)
|
||||
|
||||
install(TARGETS latte-dock ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
|
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/latte-dock.desktop DESTINATION ${KDE_INSTALL_APPDIR})
|
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.latte-dock.desktop DESTINATION ${KDE_INSTALL_APPDIR})
|
||||
install(FILES dbus/org.kde.LatteDock.xml DESTINATION ${KDE_INSTALL_DBUSINTERFACEDIR})
|
||||
install(FILES lattedock.notifyrc DESTINATION ${KNOTIFYRC_INSTALL_DIR})
|
||||
|
11
install.sh
11
install.sh
@ -15,3 +15,14 @@ cd build
|
||||
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=$build_type ..
|
||||
make
|
||||
sudo make install
|
||||
|
||||
oldDeskFile="/usr/share/applications/latte-dock.desktop"
|
||||
|
||||
# TODO: remove this lines before 0.7 release, it is provided only for
|
||||
# the users that use the master branch and built it themselves. It
|
||||
# will help them to not have to different desktop files for Latte
|
||||
if [ -f $oldDeskFile ] ; then
|
||||
sudo rm $oldDeskFile
|
||||
echo "Removed old desktop file..."
|
||||
fi
|
||||
|
||||
|
@ -15,7 +15,7 @@ PROJECTSHELL="plasma_shell_org.kde.latte.shell" # project name
|
||||
TEMPLATESHELL="shell.metadata.desktop.template" # shell desktop template
|
||||
|
||||
PROJECTAPP="latte-dock" # project name
|
||||
TEMPLATEAPP="latte-dock.desktop.template" # app desktop template
|
||||
TEMPLATEAPP="org.kde.latte-dock.desktop.template" # app desktop template
|
||||
|
||||
NOTIFYRC="lattedock.notifyrc.template" # notifyrc template
|
||||
|
||||
|
@ -1,18 +1,26 @@
|
||||
[Desktop Entry]
|
||||
Name=Latte
|
||||
Comment=Dock for the masses
|
||||
GenericName=Dock
|
||||
|
||||
Version=@VERSION@
|
||||
Categories=Utility;X-SuSE-DesktopUtility;
|
||||
Comment[el_GR]=Dock for the masses
|
||||
Comment=Dock for the masses
|
||||
Exec=latte-dock %u
|
||||
GenericName[el_GR]=Dock
|
||||
GenericName=Dock
|
||||
Icon=latte-dock
|
||||
InitialPreference=1
|
||||
MimeType=
|
||||
Name[el_GR]=Latte
|
||||
Name=Latte
|
||||
Path=
|
||||
StartupNotify=false
|
||||
Terminal=false
|
||||
TerminalOptions=
|
||||
Type=Application
|
||||
Version=@VERSION@
|
||||
X-DBUS-ServiceName=org.kde.lattedock
|
||||
X-DBUS-StartupType=unique
|
||||
X-KDE-PluginInfo-Author=@AUTHOR@
|
||||
X-KDE-PluginInfo-Email=@EMAIL@
|
||||
X-KDE-PluginInfo-Website=@WEBSITE@
|
||||
X-KDE-StartupNotify=false
|
||||
X-DBUS-StartupType=Unique
|
||||
X-DBUS-ServiceName=org.kde.lattedock
|
||||
X-KDE-SubstituteUID=false
|
||||
X-KDE-Username=
|
@ -8,7 +8,7 @@ cd "$BASEDIR/.."
|
||||
PROJECTCONTAINMENT="$(pwd)/containment/metadata.desktop.cmake" # containment path
|
||||
PROJECTPLASMOID="$(pwd)/plasmoid/metadata.desktop.cmake" # plasmoid path
|
||||
PROJECTSHELL="$(pwd)/shell/metadata.desktop.cmake" # shell path
|
||||
PROJECTAPP="$(pwd)/app/latte-dock.desktop.cmake" # app path
|
||||
PROJECTAPP="$(pwd)/app/org.kde.latte-dock.desktop.cmake" # app path
|
||||
NOTIFYRC="$(pwd)/app/lattedock.notifyrc" # global notify config
|
||||
|
||||
function generate_desktop_file
|
||||
@ -32,6 +32,6 @@ generate_desktop_file plasmoid plasmoid.metadata.desktop.template "$PROJECTPLASM
|
||||
|
||||
generate_desktop_file shell shell.metadata.desktop.template "$PROJECTSHELL"
|
||||
|
||||
generate_desktop_file app latte-dock.desktop.template "$PROJECTAPP"
|
||||
generate_desktop_file app org.kde.latte-dock.desktop.template "$PROJECTAPP"
|
||||
|
||||
generate_desktop_file app lattedock.notifyrc.template "$NOTIFYRC"
|
||||
|
Loading…
Reference in New Issue
Block a user