0
0
Fork 0
mirror of https://github.com/boltgolt/howdy.git synced 2024-10-17 10:06:53 +02:00
Commit graph

35 commits

Author SHA1 Message Date
boltgolt
aa75c7666c
Merge pull request #855 from Gliese852/gtk-add-model-segfault
Fix segfault when adding a model via howdy-gtk
2024-05-04 13:30:12 +02:00
Gliese852
344eb342f7
Some small fixes (#862)
* Also use PKEXEC_UID to get username

Privilege elevation can occur through pkexec, where many environment
variables are not accessible.

This fixes the following problem - if howdy-gtk is run without sudo,
authorization occurs via pkexec, and the user variable is empty. So when
adding the first model, it is unclear to which user to add it.

* Update the container when the slide changes

In some GTK themes, when we change a slide, we see a blank window
because there is nothing to trigger the size update, and the slide is
displayed at zero size. Let's force a size update so that it always
works.

* Remove reading of non-existent '_variables' file

* More correct preview when stretching the window

The "Video" tab layout did not display correctly when resizing the
window.

* Don't add a model if the user list is empty

The list of users may be empty, and if you try to add a model, a string
concatenation error with None will occur.

For simplicity and consistency with the "Delete" button, we simply check
the size of the list after clicking.

* Show real camera ID in the 'Video' tab

* Handle the case if there are no cameras via except

Otherwise, when trying to read the /dev/v4l/by-path directory, an
exception is thrown and the program visually freezes.
2024-01-17 14:25:40 +01:00
xiangluoming
458d8f59a4 fix errors when install_in_site_package in meson.build.
According to https://github.com/mesonbuild/meson/issues/12601 ,
py.install_sources shouldn't use install_mode.
2023-12-20 13:24:39 +08:00
Anton Golubev
05b8cb5b9e
Fix segfault when adding a model via howdy-gtk
On all test machines available to me (3), the "map" event was apparently
fired before the "Please look directly into the camera" dialog was
finally created. Therefore, the dialog was not displayed at all when
scanning a face, and a segfault occurred when calling destroy().

Copied the code from onboarding.py, it works well there.
2023-11-09 17:38:27 +03:00
Anton Golubev
47e5a3bdac
Use subdirs for 'py_sources_dir' too
If you explicitly specify the 'py_sources_dir' option, the howdy and
howdy-gtk source files get mixed up, fixed that.
2023-09-22 18:05:08 +03:00
Sayafdine Said
19f5b8d4d6
build: remove mandatory modules 2023-06-27 21:51:39 +02:00
Sayafdine Said
241bc6bb04
feat: add meson root script with howdy-gtk
Add meson for howdy-gtk and a global meson script for both.
2023-06-26 17:33:46 +02:00
Mihai Fufezan
9b63f1c69e
config: add fallbacks 2023-03-07 21:44:55 +02:00
Kian-Meng Ang
767176c804 Fix typos
Found via `codespell -S .mypy_cache,.git -L timout,ans,intenal`
2023-02-28 10:59:51 +08:00
boltgolt
db3a8cbfd4
GTK fixes 2023-02-22 09:35:36 +01:00
boltgolt
662b29a27a
Merge pull request #683 from EmixamPP/linux-enable-ir-emitter_2
linux-enable-ir-emitter
2023-02-19 10:50:57 +01:00
boltgolt
024451fd05
Small fixes to update PR 2023-02-19 10:44:04 +01:00
EmixamPP
c1214ad919 undo device path change 2022-06-30 16:55:29 +02:00
EmixamPP
d3541cf3c0 display linux-enable-ir-emitter help 2022-06-30 15:35:27 +02:00
Patrizio Bruno
dee239a13c
gtk: search for config.ini in /etc/howdy 2022-04-05 19:20:00 +01:00
Patrizio Bruno
6151217466
move config.ini and /models to /etc/howdy for better compatibility with immutable OSs 2022-04-05 18:55:24 +01:00
EmixamPP
fddcdd1d5e inverted error message 2021-11-11 10:23:34 +01:00
EmixamPP
4f7c65615c fix camera list not always displayed (gi bug) 2021-10-30 14:00:50 +02:00
EmixamPP
2e2c1ac196 check camera opening (fix is_gray(None)) 2021-10-30 13:58:36 +02:00
EmixamPP
0e4aaa0c47 many lib dir 2021-10-30 13:57:16 +02:00
boltgolt
768f2f402d
Rubberstamp changes, addded hotkey rubberstamp 2021-03-13 14:24:51 +01:00
boltgolt
f16dbe478f
Gtk ui now works within rubberstamps 2021-01-09 20:47:32 +01:00
boltgolt
db3ee86bc2
Added video tab to window 2021-01-08 18:49:58 +01:00
boltgolt
181318d201
Onboarding is done 2021-01-08 16:02:38 +01:00
boltgolt
9f4c1a7fe6
Added entire onboarding flow 2021-01-04 23:51:49 +01:00
boltgolt
4f3188cae5
Tab models file rename 2021-01-04 12:38:10 +01:00
boltgolt
ac933f851e
Added internalisation and user add button 2021-01-03 16:10:13 +01:00
boltgolt
adfb8a82d4
Fixed links on about page 2020-12-24 14:16:27 +01:00
boltgolt
6e58ac99f9
Added about tab 2020-12-22 17:44:52 +01:00
boltgolt
54f418419c
Moved handlers to seperate file 2020-12-22 14:05:54 +01:00
boltgolt
982641b92b
Added GUI listing, adding and deleting of models 2020-12-18 17:42:15 +01:00
boltgolt
a151338dac
Started on glade ui, removed howdy-gtk-auth symlink 2020-12-05 13:44:40 +01:00
boltgolt
11eaccbdfb
Cleanup 2020-12-03 13:08:37 +01:00
boltgolt
2c28c94353
Made howdy-gtk debian package 2020-12-03 01:19:15 +01:00
boltgolt
d154c56566
First working implementation of auth ui in gtk 2020-12-03 00:36:22 +01:00