Skip to content

xtitle: can't open display. #25

@aidiss

Description

@aidiss

I tried to create a systemctl service that would dump title every few seconds

Hre is the service file:

[Unit]
Description=ServiceTest

[Service]
ExecStart=xtitle >> ~/dump

[Install]
WantedBy=default.target
$ systemctl --user status monitor
● monitor.service - ServiceTest
     Loaded: loaded (/home/ads/.config/systemd/user/monitor.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sun 2020-05-31 11:07:24 EEST; 1s ago
TriggeredBy: ● monitor.timer
    Process: 7434 ExecStart=/usr/bin/xtitle >> ~/dump (code=exited, status=1/FAILURE)
   Main PID: 7434 (code=exited, status=1/FAILURE)

May 31 11:07:24 sun systemd[1040]: Started ServiceTest.
**May 31 11:07:24 sun xtitle[7434]: xtitle: can't open display.**
May 31 11:07:24 sun systemd[1040]: monitor.service: Main process exited, code=exited, status=1/FAILURE
May 31 11:07:24 sun systemd[1040]: monitor.service: Failed with result 'exit-code'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions