linux-qubasis
linux oasis port as a qubes template
git clone https://9o.is/git/linux-qubasis.git
commit bf8e1ae9e50f0e610b5b572ed9c87966c2fa27d5 parent b02eb23611b0bb5c5864ae7aff0d968c8c75af73 Author: Jul <jul@9o.is> Date: Wed, 30 Jul 2025 02:21:59 -0400 add picker flag to noice Diffstat:
| D | pkg/noice/patches/0001-exec-file-instead.patch | | | 25 | ------------------------- |
| A | pkg/noice/patches/0001-nopen-exec-file-instead.patch | | | 25 | +++++++++++++++++++++++++ |
| A | pkg/noice/patches/0002-add-picker-flag.patch | | | 45 | +++++++++++++++++++++++++++++++++++++++++++++ |
3 files changed, 70 insertions(+), 25 deletions(-)
diff --git a/pkg/noice/patches/0001-exec-file-instead.patch b/pkg/noice/patches/0001-exec-file-instead.patch @@ -1,25 +0,0 @@ -From 9b72571f85a19521b24a06a284063e6d6a00192c Mon Sep 17 00:00:00 2001 -From: Jul <jul@qh.is> -Date: Wed, 30 Jul 2025 01:18:08 -0400 -Subject: [PATCH] exec file instead - ---- - nopen.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/nopen.c b/nopen.c -index 96cc2ab..5cd7d7d 100644 ---- a/nopen.c -+++ b/nopen.c -@@ -36,7 +36,7 @@ run(struct rule *rule, char *arg) - argv[i] = rule->argv[i]; - } - argv[i] = NULL; -- return spawnvp(NULL, rule->file, argv); -+ return execvp(rule->file, argv); - } - - struct rule * --- -2.50.1 - diff --git a/pkg/noice/patches/0001-nopen-exec-file-instead.patch b/pkg/noice/patches/0001-nopen-exec-file-instead.patch @@ -0,0 +1,25 @@ +From bcfb25dfe86657ff49e5a12a477026e886f0d629 Mon Sep 17 00:00:00 2001 +From: Jul <jul@qh.is> +Date: Wed, 30 Jul 2025 01:18:08 -0400 +Subject: [PATCH 1/2] nopen exec file instead + +--- + nopen.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/nopen.c b/nopen.c +index 96cc2ab..5cd7d7d 100644 +--- a/nopen.c ++++ b/nopen.c +@@ -36,7 +36,7 @@ run(struct rule *rule, char *arg) + argv[i] = rule->argv[i]; + } + argv[i] = NULL; +- return spawnvp(NULL, rule->file, argv); ++ return execvp(rule->file, argv); + } + + struct rule * +-- +2.50.1 + diff --git a/pkg/noice/patches/0002-add-picker-flag.patch b/pkg/noice/patches/0002-add-picker-flag.patch @@ -0,0 +1,45 @@ +From fc73079ee8d4fad755e84a85e906a08042985b10 Mon Sep 17 00:00:00 2001 +From: Jul <jul@qh.is> +Date: Wed, 30 Jul 2025 02:18:47 -0400 +Subject: [PATCH 2/2] add picker flag + +--- + noice.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/noice.c b/noice.c +index 41df8d9..bd0c030 100644 +--- a/noice.c ++++ b/noice.c +@@ -73,6 +73,7 @@ struct entry *dents; + char *argv0; + int ndents, cur; + int idle; ++int pickermode; + + /* + * Layout: +@@ -647,6 +648,10 @@ nochange: + goto begin; + case S_IFREG: + exitcurses(); ++ if (pickermode) { ++ printf("%s\n", newpath); ++ exit(0); ++ } + run = xgetenv("NOPEN", NOPEN); + r = spawnlp(path, run, run, newpath, (void *)0); + initcurses(); +@@ -811,6 +816,9 @@ main(int argc, char *argv[]) + case 'c': + usecolor = 1; + break; ++ case 'p': ++ pickermode = 1; ++ break; + default: + usage(); + } ARGEND +-- +2.50.1 +