-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Closed
Description
termux-notification works if script is in /data/data/com.termux/files/home/.shortcuts/ but does not work if script is in /data/data/com.termux/files/home/.shortcuts/tasks/
Steps to reproduce
- Create this script as /data/data/com.termux/files/home/.shortcuts/tester:
#!/bin/sh
termux-notification
- Create a Termux shortcut widget for tester on phone's home screen. Launching the widget produces a notification.
- Move the script to /data/data/com.termux/files/home/.shortcuts/tasks/tester
- Delete the Termux shortcut widget for tester and re-create it using the new path. Launching the widget does not produce a notification.
Expected behavior
A shell script should be able to create a notification using termux-notification regardless of whether the script is running in a terminal or running in the background.
Additional information
- Termux application version: 0.104
- Termux API version: 0.47
- Android OS version: LineageOS 16
- Device model: OnePlus 5
I already tried comparing the environment of terminal vs. background (by redirecting output of env to a log file) and did not find an obvious culprit.
Metadata
Metadata
Assignees
Labels
No labels