-
Notifications
You must be signed in to change notification settings - Fork 18
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
please add ability to run sh files from file manager #50
Comments
Why not spawn a shell and run a command? |
I have to type in the shell the name of the file. I thought the file manager was needed for this: in order not to type anything again. |
diff --git a/config.def.h b/config.def.h
index 7e7c200..41880ee 100644
--- a/config.def.h
+++ b/config.def.h
@@ -54,12 +54,14 @@ static const char *mupdf[] = { "mupdf", "-I" };
static const char *libreoffice[] = { "libreoffice" };
static const char *gimp[] = { "gimp" };
static const char *r2[] = { "r2", "-c", "vv" };
+static const char *sh_cmd[] = { "sh" };
/* extensions*/
static const char *images[] = { "bmp", "jpg", "jpeg", "png", "gif", "webp", "xpm" };
static const char *pdf[] = { "epub", "pdf" };
static const char *arts[] = { "xcf" };
static const char *obj[] = { "o", "a", "so" };
+static const char *shell_ext[] = { "sh" };
static const char *videos[] = { "avi", "flv", "wav", "webm", "wma", "wmv",
"m2v", "m4a", "m4v", "mkv", "mov", "mp3",
"mp4", "mpeg", "mpg" };
@@ -73,6 +75,7 @@ static Rule rules[] = {
{documents, LEN(documents), libreoffice, LEN(libreoffice) },
{arts, LEN(arts), gimp, LEN(gimp) },
{obj, LEN(obj), r2, LEN(r2) },
+ {shell_ext, LEN(shell_ext), sh_cmd, LEN(sh_cmd) },
};
/* normal keys */ |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
why do I need a file manager that can't run files?
The text was updated successfully, but these errors were encountered: