Systemd startup Broadway backend
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I met a problem to use systemd to startup a program which needs to talk to GDK Broadway backend.
(We are prepared to contribute $Aus 1000 for speedy fix.)
Is this the correct location?
The whole story is that I am in the progress to migrate a GTK+3 application to web based on Nignx/Nodejs/
Interesting thing is that when I execute that Nodejs application through terminal, everything works perfectly.
When I use systemd to startup that Nodejs application, after user logins in, Broadway instance is up, the GTK+3 application is up then exit with the error message: "Gtk-WARNING **: cannot open display:"
I googled for a while and didn't find many useful information. So I am not sure it is that systemd doesn't support GUI or I just made a stupid mistake.
Anyway, thanks a lot in advance.
The systemd service file of the Nodejs application looks like this:
[Unit]
Description=
After=Our-
[Service]
ExecStart=
Restart=always
RestartSec=5
StandardOutput=
StandardError=
SyslogIdentifie
[Install]
WantedBy=
The Nodejs application code looks like this:
... ...
var spawn = require(
... ...
var env = Object.
env.LOGNAME = username;
env.GDK_BACKEND = 'broadway';
env.BROADWAY_
env.SAL_
env.UBUNTU_
env.LIBOVERLAY_
env.HOME = 'XXXXXXX';
const instance = spawn('
instance.
console.
});
instance.
console.
});
instance.
console.
});
Thanks for your report. However, what made you file it against the ubuntu-docs package? (It's for the user documentation of the Ubuntu desktop.)
Possibly it's not a bug at all. I'd recommend that you ask for help at <http:// askubuntu. com>.