1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/x11/slim/files/patch-slim.conf
Raphael Kubo da Costa 815a789b86 - Update to 1.3.5.
PR:		ports/177857
Submitted by:	Kevin Zheng <kevinz5000@gmail.com>
Approved by:	Henry Hu <henry.hu.sh@gmail.com> (maintainer)
2013-05-14 21:34:12 +00:00

59 lines
2.2 KiB
Plaintext

--- ./slim.conf.orig 2012-12-31 07:03:42.000000000 -0600
+++ ./slim.conf 2013-03-23 14:10:35.000000000 -0500
@@ -1,17 +1,19 @@
# 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
+default_xserver %%LOCALBASE%%/bin/X
+# The X server needs to be started on an unused virtual terminal,
+# for FreeBSD in a default configuration, the first one of those is #09
+xserver_arguments vt09
# Commands for halt, login, etc.
-halt_cmd /sbin/shutdown -h now
+halt_cmd /sbin/shutdown -p 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"
-#suspend_cmd /usr/sbin/suspend
+console_cmd %%LOCALBASE%%/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/motd; exec /usr/bin/login"
+suspend_cmd /usr/sbin/acpiconf -s 3
# Full path to the xauth binary
-xauth_path /usr/bin/xauth
+xauth_path %%LOCALBASE%%/bin/xauth
# Xauth file for server
authfile /var/run/slim.auth
@@ -32,8 +34,8 @@
# 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 - ~/.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
@@ -63,7 +65,7 @@
# session_msg Session:
# shutdown / reboot messages
-shutdown_msg The system is halting...
+shutdown_msg The system is powering down...
reboot_msg The system is rebooting...
# default user, leave blank or remove this line
@@ -84,7 +86,7 @@
current_theme default
# Lock file
-lockfile /var/run/slim.lock
+lockfile /var/run/slim.pid
# Log file
logfile /var/log/slim.log