-
-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe
When I start touche with a touchegg.conf which has invalid XML, touche does not show a GUI but also does not quit, and shows only unspecific error messages.
Example:
- Take this
touchegg.confwhich contains the single character&whis is ivalid HTML (see this comment for details on that part) as~/.config/touchegg/touchegg.conf. - Run
touche. toucheproduces the following terminal output:(com.github.joseexposito.touche:22701): Gtk-WARNING **: 10:57:40.714: Unknown key gtk-button-images in /[...]/.config/gtk-4.0/settings.ini (com.github.joseexposito.touche:22701): Gtk-WARNING **: 10:57:40.714: Unknown key gtk-menu-images in /[...]/.config/gtk-4.0/settings.ini (com.github.joseexposito.touche:22701): Gtk-WARNING **: 10:57:40.714: Unknown key gtk-toolbar-style in /[...]/.config/gtk-4.0/settings.ini Gjs-Message: 10:57:40.853: JS LOG: Reading configuration file "/[...]/.config/touchegg/touchegg.conf" (com.github.joseexposito.touche:22701): Gjs-CRITICAL **: 10:57:40.870: JS ERROR: Error: Unexpected close tag Line: 101 Column: 15 Char: > error@webpack:///../node_modules/sax/lib/sax.js?:684:10 strictFail@webpack:///../node_modules/sax/lib/sax.js?:711:12 closeTag@webpack:///../node_modules/sax/lib/sax.js?:913:19 write@webpack:///../node_modules/sax/lib/sax.js?:1549:21 module.exports@webpack:///../node_modules/xml-js/lib/xml2js.js?:411:12 loadConfig@webpack:///../src/config/xml-config.js?:89:66 loadFromFile@webpack:///../src/config/model.js?:103:57 showMainView@webpack:///../src/app-window.js?:84:59 _init@webpack:///../src/app-window.js?:61:12 main/<@webpack:///../src/index.js?:53:22 main@webpack:///../src/index.js?:58:22 run@resource:///org/gnome/gjs/modules/script/package.js:206:19 @/usr/bin/touche:11:17touchedoes not come up with a user interface, but also does not quit but stays stuck.
Describe the solution you'd like
- Give a clear error message saying at which line it encountered which problem,
- exit with a non-zero exitcode.
Additional context
Issue #48.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request