]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: Use /usr/bin/editor if available 52/head
authorMichael Biebl <biebl@debian.org>
Wed, 3 Jun 2015 12:00:59 +0000 (14:00 +0200)
committerMichael Biebl <biebl@debian.org>
Wed, 3 Jun 2015 12:14:42 +0000 (14:14 +0200)
commit9391a1c3d6c94c478b0016a81df3f874fd99260e
tree3ad2ecd003af709737a1eded2fee7c60162dce36
parent36f5e964dedc01b685a30367b7db1fa4c71ff2f3
systemctl: Use /usr/bin/editor if available

If the EDITOR environment variable is not set, the Debian policy
recommends to use the /usr/bin/editor program as default editor.
This file is managed via the dpkg alternatives mechanism and typically
used in Debian/Ubuntu and derivatives to configure the default editor.

See section 11.4 of the Debian policy [1].

Therefor prefer /usr/bin/editor over specific editors if available.

[1] https://www.debian.org/doc/debian-policy/ch-customized-programs.html
man/systemctl.xml
src/systemctl/systemctl.c