Remove GNOME dependencies and make more desktop-neutral - cleaned
- Remove gsettings-desktop-schemas dependency (GNOME-specific) - Replace gnome.post_install() with manual gtk4-update-icon-cache - Remove GNOME import from meson.build - Make autostart desktop file desktop-neutral (remove GSettings condition) - Add accessibility categories and keywords to desktop file 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -3,7 +3,9 @@ Type=Application
|
||||
Name=Cthulhu Screen Reader
|
||||
Exec=cthulhu
|
||||
NoDisplay=true
|
||||
AutostartCondition=GSettings org.gnome.desktop.a11y.applications screen-reader-enabled
|
||||
# Desktop-neutral autostart - no GNOME-specific conditions
|
||||
# Users can enable/disable via their desktop environment's accessibility settings
|
||||
# or by adding/removing this file from ~/.config/autostart/
|
||||
X-GNOME-AutoRestart=true
|
||||
#X-GNOME-Autostart-Phase=Initialization
|
||||
OnlyShowIn=GNOME;MATE;Unity;Cinnamon;
|
||||
Categories=Accessibility;
|
||||
Keywords=screen;reader;accessibility;speech;braille;
|
||||
|
@@ -37,7 +37,6 @@ depends=(
|
||||
python-pyautogui
|
||||
|
||||
# Desktop integration
|
||||
gsettings-desktop-schemas
|
||||
hicolor-icon-theme
|
||||
libwnck3
|
||||
pango
|
||||
|
@@ -4,7 +4,6 @@ project('cthulhu',
|
||||
)
|
||||
|
||||
python = import('python')
|
||||
gnome = import('gnome')
|
||||
i18n = import('i18n')
|
||||
|
||||
python_minimum_version = '3.3'
|
||||
@@ -105,9 +104,9 @@ i18n.merge_file(
|
||||
install_dir: get_option('sysconfdir') / 'xdg' / 'autostart',
|
||||
)
|
||||
|
||||
gnome.post_install(
|
||||
gtk_update_icon_cache: true,
|
||||
)
|
||||
# Update icon cache manually (desktop-neutral)
|
||||
meson.add_install_script('gtk4-update-icon-cache', '-q', '-t', '-f',
|
||||
get_option('datadir') / 'icons' / 'hicolor')
|
||||
|
||||
summary += {'Install dir': python.find_installation('python3').get_install_dir()}
|
||||
|
||||
|
Reference in New Issue
Block a user