openbsd-ports/x11/slim/patches/patch-slim_conf
landry c4ea8f7c71 Update to slim 1.3.4.
- switch to cmake.
- add missing setusercontext() call in switchuser.cpp, now the ulimits
  are properly applied when logging in.
- add support for bsd_auth(3) through auth_userokay(3). Now allows to
  login via login_ldap/login_yubikey/etc...
- add support for consolekit, no need to do ck-launch-session in
  .xinitrc anymore.
- make consolekit support at runtime optional, ie don't badly bail out
  if systemwide dbus daemon is not running. Being discussed with
upstream.
parts based on a diff from 'johnw', ok ajacoutot@
2012-09-02 09:22:59 +00:00

57 lines
2.3 KiB
Plaintext

$OpenBSD: patch-slim_conf,v 1.6 2012/09/02 09:22:59 landry Exp $
--- slim.conf.orig Tue Jun 26 10:20:14 2012
+++ slim.conf Sat Sep 1 23:15:35 2012
@@ -1,17 +1,17 @@
# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
-default_path /bin:/usr/bin:/usr/local/bin
-default_xserver /usr/bin/X
-#xserver_arguments -dpi 75
+default_path :/bin:/usr/bin:${LOCALBASE}/bin:${X11BASE}/bin
+default_xserver ${X11BASE}/bin/X
+xserver_arguments vt05
# Commands for halt, login, etc.
-halt_cmd /sbin/shutdown -h now
+halt_cmd /sbin/shutdown -ph now
reboot_cmd /sbin/shutdown -r now
-console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
+console_cmd ${X11BASE}/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/usr/bin/head -1 /etc/motd; exec /usr/bin/login"
#suspend_cmd /usr/sbin/suspend
# Full path to the xauth binary
-xauth_path /usr/bin/xauth
+xauth_path ${X11BASE}/bin/xauth
# Xauth file for server
authfile /var/run/slim.auth
@@ -32,8 +32,8 @@ authfile /var/run/slim.auth
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
-# login_cmd exec /bin/sh - ~/.xinitrc %session
-login_cmd exec /bin/bash -login ~/.xinitrc %session
+login_cmd exec /bin/sh -l ~/.xinitrc %session
+# login_cmd exec /bin/bash -login ~/.xinitrc %session
# Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
@@ -54,7 +54,7 @@ login_cmd exec /bin/bash -login ~/.xinitrc %
sessions xfce4,icewm-session,wmaker,blackbox
# Executed when pressing F11 (requires imagemagick)
-screenshot_cmd import -window root /slim.png
+screenshot_cmd import -window root /tmp/slim.png
# welcome message. Available variables: %host, %domain
welcome_msg Welcome to %host
@@ -84,7 +84,7 @@ reboot_msg The system is rebooting...
current_theme default
# Lock file
-lockfile /var/run/slim.lock
+lockfile /var/run/slim.pid
# Log file
logfile /var/log/slim.log