From d49e6fe040dee476ae9308733249f6990c4be7e9 Mon Sep 17 00:00:00 2001 From: Ole Date: Sat, 14 Nov 2015 10:24:06 +0100 Subject: [PATCH 1/3] Added .desktop file. Ubuntu menues should work decently now, although key-bindings are not updated from within juci (Ubuntu bug). --- CMakeLists.txt | 5 +++++ share/juci.desktop | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 share/juci.desktop diff --git a/CMakeLists.txt b/CMakeLists.txt index f80481f..59e1e52 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,3 +8,8 @@ set(project_name juci) project (${project_name}) add_subdirectory("src") + +find_program(XDG_DESKTOP_MENU_EXECUTABLE xdg-desktop-menu) +if(XDG_DESKTOP_MENU_EXECUTABLE) + install(CODE "execute_process(COMMAND ${XDG_DESKTOP_MENU_EXECUTABLE} install --novendor share/juci.desktop)") +endif() diff --git a/share/juci.desktop b/share/juci.desktop new file mode 100644 index 0000000..ccad19d --- /dev/null +++ b/share/juci.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=juci +GenericName=juCi++ +Comment=A lightweight IDE +Exec=juci %U +Terminal=false +Type=Application +StartupNotify=true +MimeType=text/plain; From 8c7ccf65620e51566b497730b4cdcc746bd84d34 Mon Sep 17 00:00:00 2001 From: Ole Date: Sat, 14 Nov 2015 10:33:37 +0100 Subject: [PATCH 2/3] Fixed name in juci.desktop. --- share/juci.desktop | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/share/juci.desktop b/share/juci.desktop index ccad19d..5761e94 100644 --- a/share/juci.desktop +++ b/share/juci.desktop @@ -1,6 +1,5 @@ [Desktop Entry] -Name=juci -GenericName=juCi++ +Name=juCi++ Comment=A lightweight IDE Exec=juci %U Terminal=false From b97adca94755757b30ea6a038840a2203e2cbe3f Mon Sep 17 00:00:00 2001 From: Ole Date: Sat, 14 Nov 2015 10:50:39 +0100 Subject: [PATCH 3/3] Fixed Exec in juci.desktop. --- share/juci.desktop | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/juci.desktop b/share/juci.desktop index 5761e94..be6f7cf 100644 --- a/share/juci.desktop +++ b/share/juci.desktop @@ -1,7 +1,7 @@ [Desktop Entry] Name=juCi++ Comment=A lightweight IDE -Exec=juci %U +Exec=juci %F Terminal=false Type=Application StartupNotify=true