It seems that gnome-extensions list
works fine when called just from the terminal and lists extensions. But when it is called from service, it doesn’t.
Script (1):
#! /bin/bash
gnome-extensions list > /tmp/log
Systemd unit file /etc/systemd/system/rot13.service:
[Unit]
Description=ROT13 demo service
After=network.target
StartLimitIntervalSec=0[Service]
Restart=always
RestartSec=1
[Service]
ExecStart=/home/ibse/main.sh # path to the script (1)
Type=simple
[Install]
WantedBy=multi-user.target
Then I run the service sudo systemctl start rot13
and /tmp/log file, where gnome-extensions list
command was redirected, is created, but empty.
When I run gnome-extensions list
from the terminal it lists:
example@gjs.guide
ext1@ext.com
ext2@ext.com