1 |
commit: 78925d7a2cdac37e74219558419b862d81e6a9c5 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 3 05:44:12 2019 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 3 05:45:23 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78925d7a |
7 |
|
8 |
x11-apps/xinit: Only print postinst messages first time |
9 |
|
10 |
Closes: https://bugs.gentoo.org/440454 |
11 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
12 |
|
13 |
x11-apps/xinit/xinit-1.4.0-r1.ebuild | 19 +++++++++++-------- |
14 |
1 file changed, 11 insertions(+), 8 deletions(-) |
15 |
|
16 |
diff --git a/x11-apps/xinit/xinit-1.4.0-r1.ebuild b/x11-apps/xinit/xinit-1.4.0-r1.ebuild |
17 |
index a8b0150bc16..f8dedbb1ce7 100644 |
18 |
--- a/x11-apps/xinit/xinit-1.4.0-r1.ebuild |
19 |
+++ b/x11-apps/xinit/xinit-1.4.0-r1.ebuild |
20 |
@@ -56,12 +56,15 @@ src_install() { |
21 |
|
22 |
pkg_postinst() { |
23 |
xorg-2_pkg_postinst |
24 |
- ewarn "If you use startx to start X instead of a login manager like gdm/kdm," |
25 |
- ewarn "you can set the XSESSION variable to anything in /etc/X11/Sessions/ or" |
26 |
- ewarn "any executable. When you run startx, it will run this as the login session." |
27 |
- ewarn "You can set this in a file in /etc/env.d/ for the entire system," |
28 |
- ewarn "or set it per-user in ~/.bash_profile (or similar for other shells)." |
29 |
- ewarn "Here's an example of setting it for the whole system:" |
30 |
- ewarn " echo XSESSION=\"Gnome\" > /etc/env.d/90xsession" |
31 |
- ewarn " env-update && source /etc/profile" |
32 |
+ |
33 |
+ if ! has_version 'x11-apps/xinit'; then |
34 |
+ ewarn "If you use startx to start X instead of a login manager like gdm/kdm," |
35 |
+ ewarn "you can set the XSESSION variable to anything in /etc/X11/Sessions/ or" |
36 |
+ ewarn "any executable. When you run startx, it will run this as the login session." |
37 |
+ ewarn "You can set this in a file in /etc/env.d/ for the entire system," |
38 |
+ ewarn "or set it per-user in ~/.bash_profile (or similar for other shells)." |
39 |
+ ewarn "Here's an example of setting it for the whole system:" |
40 |
+ ewarn " echo XSESSION=\"Gnome\" > /etc/env.d/90xsession" |
41 |
+ ewarn " env-update && source /etc/profile" |
42 |
+ fi |
43 |
} |