lxdm: adjust PATH for usrmerge
This commit is contained in:
parent
1e66c63a6a
commit
0f4856ce1a
22
srcpkgs/lxdm/patches/default-PATH.patch
Normal file
22
srcpkgs/lxdm/patches/default-PATH.patch
Normal file
@ -0,0 +1,22 @@
|
||||
From e46c33735f81ca5607247fd0690ebbe9f1565708 Mon Sep 17 00:00:00 2001
|
||||
From: Piotr Wójcik <chocimier@tlen.pl>
|
||||
Date: Tue, 8 Oct 2019 19:32:15 +0200
|
||||
Subject: [PATCH] tweak default PATH
|
||||
|
||||
|
||||
diff --git a/src/lxdm.c b/src/lxdm.c
|
||||
index a37f051..8a0e6c6 100644
|
||||
--- a/src/lxdm.c
|
||||
+++ b/src/lxdm.c
|
||||
@@ -1399,7 +1399,7 @@ void lxdm_do_login(struct passwd *pw, char *session, char *lang, char *option)
|
||||
if( G_UNLIKELY(path) && path[0] ) /* if PATH is specified in config file */
|
||||
env=g_environ_setenv(env, "PATH", path, TRUE); /* override current $PATH with config value */
|
||||
else /* don't use the global env, they are bad for user */
|
||||
- env=g_environ_setenv(env, "PATH", "/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin", TRUE); /* set proper default */
|
||||
+ env=g_environ_setenv(env, "PATH", "/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin", TRUE); /* set proper default */
|
||||
g_free(path);
|
||||
/* optionally override $LANG, $LC_MESSAGES, and $LANGUAGE */
|
||||
if( lang && lang[0] )
|
||||
--
|
||||
2.23.0
|
||||
|
@ -1,7 +1,7 @@
|
||||
# Template file for 'lxdm'
|
||||
pkgname=lxdm
|
||||
version=0.5.3
|
||||
revision=4
|
||||
revision=5
|
||||
build_style=gnu-configure
|
||||
configure_args="--disable-consolekit --with-pam --enable-gtk3"
|
||||
hostmakedepends="automake gettext-devel libtool pkg-config intltool"
|
||||
@ -16,13 +16,13 @@ conf_files="
|
||||
/etc/lxdm/Xsession
|
||||
/etc/lxdm/lxdm.conf
|
||||
/etc/pam.d/lxdm"
|
||||
system_groups="lxdm"
|
||||
short_desc="GUI login manager for LXDE"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
license="GPL-3.0-or-later"
|
||||
homepage="https://lxde.org"
|
||||
distfiles="${SOURCEFORGE_SITE}/lxdm/lxdm-${version}.tar.xz"
|
||||
checksum=4891efee81c72a400cc6703e40aa76f3f3853833d048b72ec805da0f93567f2f
|
||||
system_groups="lxdm"
|
||||
|
||||
pre_configure() {
|
||||
autoreconf -fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user