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
|
Name=Cthulhu Screen Reader
|
||||||
Exec=cthulhu
|
Exec=cthulhu
|
||||||
NoDisplay=true
|
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-AutoRestart=true
|
||||||
#X-GNOME-Autostart-Phase=Initialization
|
Categories=Accessibility;
|
||||||
OnlyShowIn=GNOME;MATE;Unity;Cinnamon;
|
Keywords=screen;reader;accessibility;speech;braille;
|
||||||
|
@@ -37,7 +37,6 @@ depends=(
|
|||||||
python-pyautogui
|
python-pyautogui
|
||||||
|
|
||||||
# Desktop integration
|
# Desktop integration
|
||||||
gsettings-desktop-schemas
|
|
||||||
hicolor-icon-theme
|
hicolor-icon-theme
|
||||||
libwnck3
|
libwnck3
|
||||||
pango
|
pango
|
||||||
|
@@ -4,7 +4,6 @@ project('cthulhu',
|
|||||||
)
|
)
|
||||||
|
|
||||||
python = import('python')
|
python = import('python')
|
||||||
gnome = import('gnome')
|
|
||||||
i18n = import('i18n')
|
i18n = import('i18n')
|
||||||
|
|
||||||
python_minimum_version = '3.3'
|
python_minimum_version = '3.3'
|
||||||
@@ -105,9 +104,9 @@ i18n.merge_file(
|
|||||||
install_dir: get_option('sysconfdir') / 'xdg' / 'autostart',
|
install_dir: get_option('sysconfdir') / 'xdg' / 'autostart',
|
||||||
)
|
)
|
||||||
|
|
||||||
gnome.post_install(
|
# Update icon cache manually (desktop-neutral)
|
||||||
gtk_update_icon_cache: true,
|
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()}
|
summary += {'Install dir': python.find_installation('python3').get_install_dir()}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user