Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rmkit] patch genie to fix crash in testing #304

Merged
merged 1 commit into from
Mar 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions package/rmkit/2021_03_05_genie.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
diff --git a/src/genie/gesture_parser.cpy b/src/genie/gesture_parser.cpy
index fa82b67..c94fd59 100644
--- a/src/genie/gesture_parser.cpy
+++ b/src/genie/gesture_parser.cpy
@@ -16,17 +16,18 @@ namespace genie:
;

void run_command(string command):
+ debug "RUNNING COMMAND", command
+ string cmd = command + "&"
+ c_str := cmd.c_str()
+ _ := system(c_str)
+
ui::TaskQueue::add_task([=]() {
usleep(1e3 * 50)
-
- debug "RUNNING COMMAND", command
- string cmd = command
- c_str := cmd.c_str()
- _ := system(c_str)
-
ui::MainLoop::reset_gestures()
})

+
+
input::SwipeGesture* build_swipe_gesture(GestureConfigData gcd):
fb := framebuffer::get()
fw, fh := fb->get_display_size()
5 changes: 4 additions & 1 deletion package/rmkit/package
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,18 @@ source=(
https://github.com/rmkit-dev/rmkit/archive/681354803a158eca9c267b1f1976affda391bdff.zip
remux.service
genie.service
2021_03_05_genie.diff
)
sha256sums=(
6e2b1fb7fa52f6412268b1d063e9dd117d1913411fe26627c34cf3d02a836de5
SKIP
SKIP
SKIP
)

build() {
pip3 install okp
patch -p1 < 2021_03_05_genie.diff
make
}

Expand All @@ -38,7 +41,7 @@ bufshot() {
genie() {
pkgdesc="Gesture engine that connects commands to gestures"
url="https://rmkit.dev/apps/genie"
pkgver=0.1.4-1
pkgver=0.1.4-2
section="utils"

package() {
Expand Down