Add -Ddesktop-files option

This commit is contained in:
dec05eba
2026-01-01 04:53:26 +01:00
parent 2bb6754523
commit 3713d3d59e
3 changed files with 8 additions and 7 deletions

2
TODO
View File

@@ -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.

View File

@@ -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')

View File

@@ -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')
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')