0
0
Fork 0
mirror of https://github.com/boltgolt/howdy.git synced 2024-09-05 09:31:21 +02:00
Commit graph

564 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
Sayafdine Said
d4eb16cf9f
docs(readme): add build from source (#874) 2024-01-17 14:20:56 +01:00
Sayafdine Said
df60fb1752
Merge pull request #871 from xiangluoming/beta
fix errors when install_in_site_package in meson.build.
2023-12-23 14:16:31 +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
Sayafdine Said
c5b17665d5
Merge pull request #839 from Gliese852/source-subdirs
Use subdirs for 'py_sources_dir' too
2023-09-24 12:25:45 +02: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
boltgolt
95df4d2d48
Merge pull request #803 from musikid/meson
build: add meson build system
2023-09-14 10:34:04 +02:00
Sayafdine Said
466c859cb8
refactor: remove useless conversion 2023-09-12 23:06:47 +02:00
Sayafdine Said
0eb3eeb6a7
build: fix pamdir path 2023-09-12 22:51:03 +02:00
Sayafdine Said
29f218d9dc
build: templatize autocomplete and pam-config 2023-09-12 22:37:53 +02:00
Sayafdine Said
5133d05141
refactor: rename variable 2023-09-12 20:02:22 +02:00
Sayafdine Said
7ce795b755
Merge branch 'beta' into meson 2023-09-12 19:31:27 +02:00
boltgolt
f7649fc922
Merge pull request #824 from Gliese852/pam-messages-order
Change the display order of PAM messages
2023-09-11 13:56:14 +02:00
Anton Golubev
40720bbf87
Fixup: don't else after return and no det. notice 2023-09-06 12:03:39 +03:00
boltgolt
1e5145e0ad
Merge pull request #775 from raelgc/patch-1
Adding missing `v4l-utils` package to Ubuntu dependencies
2023-09-05 23:06:22 +02:00
boltgolt
93a3d71a76
Merge branch 'beta' into meson 2023-09-05 23:02:09 +02:00
boltgolt
13f59e0d31
Merge pull request #834 from Joseph-DiGiovanni/beta
Add configurable device frame rate
2023-09-05 22:59:00 +02:00
boltgolt
3cc017b7b5
Merge pull request #831 from Gliese852/ensure-unique-id
Ensure Model ID is unique
2023-09-05 22:51:31 +02:00
Joseph DiGiovanni
d6e35cfd1d Add configurable device frame rate 2023-08-30 17:51:13 -04:00
Anton Golubev
ef60fa519c
Ensure Model ID is unique
The ID of the newly created model was obtained as the length of the
array of models, but if some models "in the middle" were deleted, the
new ID could be the same as the existing one.

We are sure that the last ID is the maximum, so we just take +1 than the
last element.
2023-08-28 14:16:40 +03:00
boltgolt
538569921e
Merge pull request #828 from ciaoly/beta
Fix some bugs
2023-08-21 10:46:14 +02:00
chaol
ab82274a33
Fix wrong config path 2023-08-21 14:20:40 +08:00
chaol
7b835b26b4
Fix: "name 'os' is not defined" fault in preinst 2023-08-21 13:31:10 +08:00
Anton Golubev
a5184dc663
Fixup: check if the user has a model directry in the PAM module
Revert the use of pipe to signal from the script that the face model is
not found and do it directly in the module.
2023-08-11 10:21:46 +03:00
Anton Golubev
1b4f1c2d85
Change the display order of PAM messages
- do not show a message if the face model is not found

  - show a message if the user could not be recognized

  - show prompt if face model found (and enabled option)

  - enable the "detection_notice" option by default as this will only be
    shown to users who created the face model
2023-08-08 14:51:23 +03:00
Sayafdine Said
a74ee5ae7c
build: move datadir variable 2023-07-02 14:39:43 +02:00
Sayafdine Said
19f5b8d4d6
build: remove mandatory modules 2023-06-27 21:51:39 +02:00
Sayafdine Said
9b20bc2544
ci: fix argument 2023-06-26 17:40:19 +02:00
Sayafdine Said
ef2187aa8e
ci: fix workflow 2023-06-26 17:38:31 +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
Sayafdine Said
1f8ee26d3d
refactor: use only paths_factory 2023-06-25 18:45:17 +02:00
Sayafdine Said
54ba84e033
fix: convert to string 2023-06-25 17:24:08 +02:00
Sayafdine Said
37a59a06a7
style: change clang tidy configuration 2023-06-25 17:24:08 +02:00
Sayafdine Said
a92a3aade2
feat: add config path to PAM module 2023-06-25 17:24:08 +02:00
Sayafdine Said
d0ca17b1ec
refactor: add data dir for logo 2023-06-25 17:24:08 +02:00
Sayafdine Said
8bc95efda6
fix: convert to string when necessary 2023-06-25 17:24:08 +02:00
Sayafdine Said
61222197c3
build: add .clang-tidy to root src folder 2023-06-25 17:24:08 +02:00
Sayafdine Said
81db5c3bf1
fix: use correct shebang 2023-06-25 17:24:08 +02:00
Sayafdine Said
c9e24e37d9
fix: convert paths to string 2023-06-25 17:24:07 +02:00
Sayafdine Said
73adb06f45
build: add paths_factory file 2023-06-25 17:24:07 +02:00
Sayafdine Said
c97164f9f5
ci: use latest meson version 2023-06-25 17:24:07 +02:00
Sayafdine Said
5d3e69d3ad
build: add meson_options.txt for compatibility 2023-06-25 17:24:07 +02:00
Sayafdine Said
a30fbd3d42
build: remove license_files 2023-06-25 17:24:07 +02:00
Sayafdine Said
c12dce0956
refactor: add path factory to not recreate paths 2023-06-25 17:24:07 +02:00
Sayafdine Said
87017faf86
fix: use build options to configure paths 2023-06-25 17:24:07 +02:00
Sayafdine Said
d95f5e2451
fix: replace deprecated function 2023-06-25 17:24:07 +02:00
Sayafdine Said
452dac8708
ci: fix workflow 2023-06-25 17:24:07 +02:00
Sayafdine Said
2d2480054d
build: add meson build system
Add Meson as a build system for the whole howdy package,
which allow better flexibility for the paths configuration.
Generate a python module,
which contains the paths used by the other modules
and the header containing the paths for the PAM module.
2023-06-25 17:24:06 +02:00