Commit Graph

11 Commits

Author SHA1 Message Date
ArenM
27c663a896 Fix order of -maxdepth find argument
Gnu find outputs a warning if the maxdepth option appears after any
positional options, such as filtering files, because maxdepth also
affects options that come before it.

As a side note, maxdepth appears to be gnu extension that busybox picked
up, so we might want to be careful about using it.

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
2023-01-25 10:07:24 +01:00
Stacy Harper
bcb8a64613 Avoid showing empty lines on menus
Was easy to produce : Disable wifi with the Config menu then
go to the Networks menu.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2022-07-05 19:32:20 +02:00
Stacy Harper
0fc728fe55 Allow multiwords EDITOR 2022-07-01 11:15:51 +02:00
wentam
88600bedf1 Use XDG_DATA_DIRS rather than hardcode /usr/share
This is more flexible and makes packaging much easier - especially
on distros using non-standard paths like NixOS

This version of the patch has xdg_data_path default to 1 instance,
making usage simpler. The function is also documented a bit more
clearly.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2022-07-01 10:28:02 +02:00
Anjandev Momi
1123c0f072 Change license to AGPL-3.0-only 2022-03-15 08:00:00 -04:00
Zach DeCook
b9fe06d97b hookmenu: Rewrite and fix for directory/symlink structure
Now, the menu defaults to editing the hook that you click on
(because that's why you went into the menu in the first place).
A separate menu is given for deleting the hooks.

This also shows the hook name rather than the file name.

Signed-off-by: Peter John Hartman <peterjohnhartman@gmail.com>
2022-02-16 21:13:48 -06:00
Zach DeCook
ffcfa6f6a4 icons: Change into a hook
Fixes the icons hook to be where the migration script moved it.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2022-02-14 18:18:55 +01:00
Stacy Harper
4c50f3f6ea Improve sxmo_hookmenu.sh
- Add icon
- Make the main menu a loop
- Some code cleanup
2022-02-09 19:11:23 +01:00
Bruno Dupuis
4ea61cfd19 Close Menu entry naming consistency
Forgot the ${hook#* } substitution in v1.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2022-02-09 19:11:22 +01:00
ArenM
d7be031b56 hookmenu: handle empty or nonexistent hooks directory
I had a bad feeling I made a critical oversight when I sent the hookmenu
patch. Apparently it was, unfortunately, correct.

While I was here, I also added support for hooks that are symlinks.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2022-02-08 17:58:01 +01:00
ArenM
57a84b7e64 Add menu item to manage hooks
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2022-02-04 21:10:20 +01:00