trunkmaster / nextspace

NeXTSTEP-like desktop environment for Linux
https://trunkmaster.github.io
GNU General Public License v3.0
1.9k stars 69 forks source link

System/etc/profile.d/nextspace.sh is not suitable as EnvironmentFile in Applications/Login/Resources/loginwindow.service #347

Closed pgeorgi closed 4 years ago

pgeorgi commented 4 years ago

https://www.freedesktop.org/software/systemd/man/systemd.exec.html#EnvironmentFile= is quite clear that files passes in as EnvironmentFile must only contain Key=Value pairs, not full blown shell scripts.

https://unix.stackexchange.com/questions/358998/systemd-environmentfile-re-using-variables-how/431863 proposes ExecStart=/bin/bash -ac '. /path/to/env_file; exec /path/to/program' as a workaround.