1
1
Fork
You've already forked sxmo-utils
2
  • Shell 93.2%
  • C 5.1%
  • Makefile 1.6%
  • CSS 0.1%
Find a file
Willow Barraco 5886710140
sms: fix newline EOL while sending messages
Some text editors, as kakoune, automatically add an ending newline while
saving buffers to files. This is because the convention on UNIX systems,
is that files ends with newline.
While sending sms using a file as resource, modem manager keep this. I
already discussed this with the maintainer:
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/830
So we basically have to do this ourselves.
The problems appeared when we switched to this new argument
--messaging-create-sms-with-text. It fixes our quoting issues, but it
introduce this problem, when the editor does the right thing.
To solve this, we create a temporary file, without this ending newline.
The finish script trap will clean in afterward.
2026年07月07日 20:15:01 +02:00
.builds build: fix trigger reasons 2026年02月07日 06:56:37 +01:00
configs hook_statusbar: display ethernet networking status icon 2026年06月22日 17:19:56 +02:00
docs sxmo_brightness doc: fix spelling mistake 2026年01月01日 18:42:16 -08:00
migrations Fix existing migration with non shell hooks 2023年03月21日 09:54:06 +01:00
programs sxmo_status_led: account for the brightness of multicolor leds 2025年08月13日 21:09:04 +02:00
resources Added a more subtle keytap audio clip for clickclack (opt-in) 2021年12月13日 22:48:37 +01:00
scripts sms: fix newline EOL while sending messages 2026年07月07日 20:15:01 +02:00
spec Fix shellcheck 2025年11月09日 09:57:54 +01:00
.editorconfig Fix editorconfig configuration file 2023年05月14日 00:10:59 -07:00
.gitattributes use git attributes to set version in makefile 2024年06月04日 15:37:13 +02:00
.gitignore initial sxmo(7) man page 2023年04月03日 10:25:48 +02:00
.hut.scfg added configuration file for hut-cli 2024年11月25日 22:02:13 +01:00
.shellcheckrc implemented lookupcontactname() in call/text handler, removes non posix-compliant substitutions 2020年12月09日 15:46:21 +01:00
.shellspec sxmo-utils: Add sxmo_status_spec.sh 2022年02月09日 20:00:57 -05:00
LICENSE Change license to AGPL-3.0-only 2022年03月15日 08:00:00 -04:00
Makefile sxmo_idle.sh: refactoring, bug removal, performance improvements 2025年12月28日 14:13:52 +01:00
README.md Change license to AGPL-3.0-only 2022年03月15日 08:00:00 -04:00
setup_config_version.sh configversion: support xml files 2024年10月22日 10:19:48 +02:00

sxmo-utils

builds.sr.ht status

This repository contains scripts and C programs to support Sxmo.

Note all scripts pass shellcheck and are tab-idented.

<Various scripts and small C programs that glue the Sxmo environment together>
Copyright (C) <2022> <Sxmo Contributors>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, version 3 of the License only.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.