I'm trying to display images on a television from a system with no Xserver (Raspbian Buster). I can't get fbi working from a systemd service but it works through ssh terminal.
The following works through ssh...
sudo fbi -T 1 /path/to/image.jpg
But it doesn't work from systemd service (wallpaper.service)...
[Unit]
Description=display image
[Service]
Type=simple
ExecStart=/usr/bin/fbi -T 1 /path/to/image.jpg
...when I try and run it with...
sudo systemctl daemon-reload
sudo systemctl start wallpaper.service
I tried adding..
StandardInput=tty
StandardOutput=tty
TTYPath=/dev/tty1
in the service file with no luck.
Edit:
Output from sudo systemctl status wallpaper.service
● wallpaper.service - random wallpaper change script
Loaded: loaded (/etc/systemd/system/wallpaper.service; static; vendor preset: enabled)
Active: inactive (dead) since Wed 2019-08-07 01:34:34 EDT; 12s ago
Process: 888 ExecStart=/usr/bin/fbi -T 1 -a /home/deanresin/temp/fire.dragon.jpg (code=exited, status=0/SUCCESS)
Main PID: 888 (code=exited, status=0/SUCCESS)
Aug 07 01:34:34 kl3mmput3r systemd[1]: Started random wallpaper change script.
Aug 07 01:34:34 kl3mmput3r fbi[888]: using "DejaVu Sans Mono-16", pixelsize=16.67 file=/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf
Aug 07 01:34:34 kl3mmput3r systemd[1]: wallpaper.service: Succeeded.
Output from journalctl -u wallpaper.service
Aug 07 01:34:34 kl3mmput3r systemd[1]: Started random wallpaper change script.
Aug 07 01:34:34 kl3mmput3r fbi[888]: using "DejaVu Sans Mono-16", pixelsize=16.67 file=/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf
Aug 07 01:34:34 kl3mmput3r systemd[1]: wallpaper.service: Succeeded.
Edit: I read somewhere that fbi must be run from a console - a limitation of the program. Systemd sucks... nothing works from there.