From 72a632bef5c42a1a78a9ae891c9d8ca78597e766 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Wed, 25 May 2022 17:52:14 +0200 Subject: [PATCH] Add desktop files as per complaint. A desktop file for theme-selector and rofi itself. --- data/rofi-theme-selector.desktop | 8 ++++++++ data/rofi.desktop | 8 ++++++++ data/{logo.png => rofi.png} | Bin data/{logo.svg => rofi.svg} | 0 meson.build | 16 ++++++++++++++-- 5 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 data/rofi-theme-selector.desktop create mode 100644 data/rofi.desktop rename data/{logo.png => rofi.png} (100%) rename data/{logo.svg => rofi.svg} (100%) diff --git a/data/rofi-theme-selector.desktop b/data/rofi-theme-selector.desktop new file mode 100644 index 00000000..6f3b8e07 --- /dev/null +++ b/data/rofi-theme-selector.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Encoding=UTF-8 +Version=1.0 +Type=Application +Terminal=false +Exec=rofi-theme-selector +Name=Rofi Theme Selector +Icon=rofi diff --git a/data/rofi.desktop b/data/rofi.desktop new file mode 100644 index 00000000..74a03484 --- /dev/null +++ b/data/rofi.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Encoding=UTF-8 +Version=1.0 +Type=Application +Terminal=false +Exec=rofi -show +Name=Rofi +Icon=rofi diff --git a/data/logo.png b/data/rofi.png similarity index 100% rename from data/logo.png rename to data/rofi.png diff --git a/data/logo.svg b/data/rofi.svg similarity index 100% rename from data/logo.svg rename to data/rofi.svg diff --git a/meson.build b/meson.build index a0f753d9..dc7c7b9e 100644 --- a/meson.build +++ b/meson.build @@ -29,8 +29,10 @@ foreach f : flags endif endforeach -plugindir = join_paths(get_option('libdir'), meson.project_name()) -themedir = join_paths(get_option('datadir'), meson.project_name(), 'themes') +plugindir = join_paths(get_option('libdir'), meson.project_name()) +themedir = join_paths(get_option('datadir'), meson.project_name(), 'themes') +desktop_install_dir = join_paths(get_option('datadir'), 'applications') +icondir = join_paths(get_option('datadir'), 'icons','hicolor', 'scalable', 'apps') glib_min_major=2 glib_min_minor=40 @@ -130,6 +132,16 @@ install_data( install_dir: join_paths(get_option('prefix'), get_option('bindir')) ) +install_data( + 'data/rofi-theme-selector.desktop', + 'data/rofi.desktop', + install_dir: desktop_install_dir + ) +install_data( + 'data/rofi.svg', + install_dir: icondir +) + flex = generator(find_program('flex'), output: '@BASENAME@.c', arguments: [ '-o', '@OUTPUT@', '@INPUT@' ]