diff --git a/TODO b/TODO index 4998345..1cf681b 100644 --- a/TODO +++ b/TODO @@ -127,8 +127,6 @@ Add option to do screen-direct recording. But make it clear that it should not b Add systray for recording status. -Add a desktop icon when gsr-ui has a window mode option (which should be the default launch option). - Verify if cursor tracker monitor name is always correct. It uses the wayland monitor name for recording, but gpu screen recorder uses a custom name created from the drm connector name. Notification with the focused monitor (with CursorTrackerWayland) assumes that the x11 monitor name is the same as the drm monitor name. Same for find_monitor_by_name. diff --git a/meson.build b/meson.build index 2dfbd96..e07acd1 100644 --- a/meson.build +++ b/meson.build @@ -113,11 +113,13 @@ executable( install_subdir('images', install_dir : gsr_ui_resources_path) install_subdir('fonts', install_dir : gsr_ui_resources_path) -install_data(files('gpu-screen-recorder.desktop'), install_dir : join_paths(prefix, datadir, 'applications')) -install_subdir('icons/hicolor', install_dir : icons_path) +if get_option('desktop-files') == true + install_data(files('gpu-screen-recorder.desktop'), install_dir : join_paths(prefix, datadir, 'applications')) + install_subdir('icons/hicolor', install_dir : icons_path) -gnome = import('gnome') -gnome.post_install(update_desktop_database : true) + gnome = import('gnome') + gnome.post_install(update_desktop_database : true) +endif if get_option('systemd') == true install_data(files('extra/gpu-screen-recorder-ui.service'), install_dir : 'lib/systemd/user') diff --git a/meson_options.txt b/meson_options.txt index c568106..c8a7a8b 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1,2 +1,3 @@ option('systemd', type : 'boolean', value : true, description : 'Install systemd service file') -option('capabilities', type : 'boolean', value : true, description : 'Set binary setuid capability on gsr-global-hotkeys binary to allow global hotkeys') \ No newline at end of file +option('capabilities', type : 'boolean', value : true, description : 'Set binary setuid capability on gsr-global-hotkeys binary to allow global hotkeys') +option('desktop-files', type : 'boolean', value : true, description : 'Install desktop files') \ No newline at end of file