14 Commits

Author SHA1 Message Date
Stacy Harper
47856d2073 Fix some shellcheck issues 2022-08-25 15:58:49 +02:00
Stacy Harper
138c6d7753 Bump sxmo_open.sh
I improved this script over time to cover more cases and to fix issues.
2022-08-25 15:46:14 +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
Stacy Harper
8a3b1b54ee Allow TERMCMD arguments
This also simplify sxmo_open.sh
2022-01-12 15:17:19 +01:00
Peter John Hartman
b87489198b TERMCMD: allow user to specify arguments as TERMCMD
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2022-01-09 19:39:49 +01:00
Robert Manner
81b9ea87ab sxmo_open: fix mimetype when path contains ":"
eg. for images created by sxmo screenshot

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-12-29 22:00:15 +01:00
Stacy Harper
2049117d08 fix some shellcheck issues 2021-12-24 15:58:34 +01:00
Zach DeCook
6274f1f222 shebangs: change to /bin/sh
Any sane linux system will have a posix compliant shell at /bin/sh
This change will allow us to better detect running scripts using pgrep.

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-12-20 14:29:25 +01:00
Maarten van Gompel
044e756600 busybox grep has no --include, removed it
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-07-25 08:46:14 +02:00
Maarten van Gompel
f10d6cddaa various minor shellcheck fixes 2021-06-06 15:39:38 +02:00
Maarten van Gompel
50f58e9ec3 fixed stderr redirect in sxmo_open 2021-05-16 00:25:55 +02:00
Maarten van Gompel
295af30993 various scripts were not sourcing the common include script yet (noted by mrrabbit1155) 2021-02-21 15:14:16 +01:00
Reed Wade
08b95c6182 sxmo_files now respect user desktop configurations
We use our own implementation of xdg-open that replace the hardcoded
script used in sxmo_files.

We add and will maintain some desktop entries to offer a suckless
experience by default.

Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2020-11-28 02:39:25 -05:00