Solved SLiM is kicking my ... it will not start WM/DT

I swaped out a drive, to ssd, installed FreeBSD again, got it up and running config like I needed it, then xorg installed, wmaker installed, startx with .xinitrc works fine.

Installed slim and it no working...

it starts up to the login screen login and nothing.
if I have wmaker in my .xinitrc it starts that, but it is suppose to work off the desktop files. I got xfce and wmaker installed, and it does not start either one. 'command not executed or something like that I see then it goes back to the login screen.

if I remove the wmaker in .xinitrc is just kicks me back to the login screen.
Code:
[Desktop Entry]
Version=1.0
Name=WMaker
Comment=Use this session to run windowmaker as your desktop environment
Exec=wmaker
Icon=
Type=Application
DesktopNames=WindowMaker,WMaker

[Desktop Entry]
Version=1.0
Name=Xfce Session
Comment=Use this session to run Xfce as your desktop environment
Exec=startxfce4
Icon=
Type=Application
DesktopNames=XFCE

[userx@FreeBSD64ssd xsessions]$ cat /etc/rc.conf
clear_tmp_enable="YES"
sendmail_enable="NONE"
hostname="FreeBSD64ssd.net"
wlans_iwm0="wlan0"
ifconfig_wlan0="WPA DHCP"
create_args_wlan0="country US regdomain FCC"
sshd_enable="YES"
moused_enable="YES"
ntpd_enable="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
dus_enable="YES"
kld_list="/boot/modules/i915kms.ko"
devfs_system_ruleset="localrules"
autofs_enable="YES"
hald_enable="YES" # is this even needed with v12?
slim_enable="YES"

[userx@FreeBSD64ssd xsessions]$ id
uid=1000(userx) gid=1000(userx) groups=1000(userx),0(wheel),5(operator),44(video)
 
Ok, I mounted my other drive then took a look at its .xinitrc in that user account, and
Code:
#/usr/local/bin/wmaker
exec $1

edit:
well that did not work on this install.
 
This does not even work with slim not activated, just using startx

Code:
#!/bin/sh

#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
#
if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

echo $1

case $1 in
wmaker)
    exec wmaker
    ;;
xfce4|x4)
    exec /usr/local/bin/startxfce4
    ;;
openbox|ob)
    exec openbox-session
    ;;
    #wmaker|*)
    #exec wmaker
    #;;
esac

echo $1 returns blank line
 
You have a typo in rc.conf
dus_enable="YES" instead of dbus_enable.

Having set slim_enable="YES" in rc.conf, having set exec $1 in .xinitrc, and having populated /usr/local/share/xsessions with *.desktop files should do.

Check /var/log/slim.log, maybe there is a hint.
 
Quoting Slim Themes GitHub
Warning : The SliM project has been abandoned (last release was 2013, the project homepage is down), and is not fully compatible with systemd, including logind sessions. Consider using a different Display manager or Xinitrc.

You would not have these issues with xdm. Plus there would be an ~/.xsession-errors log to help you debug.
 
You have a typo in rc.conf
dus_enable="YES" instead of dbus_enable.

Having set slim_enable="YES" in rc.conf, having set exec $1 in .xinitrc, and having populated /usr/local/share/xsessions with *.desktop files should do.

Check /var/log/slim.log, maybe there is a hint.
OH :eek: thanks for catching that , and slim has a log?
 
Here's what my ~/.xinitrc looks like:
Code:
[ -f ${HOME}/.Xresources ] && xrdb ${HOME}/.Xresources

# For SLiM:
[ -n "$1" ] && exec "$1"

# Fallback in case we're not started through SLiM
exec xterm
 
Here's what my ~/.xinitrc looks like:
Code:
[ -f ${HOME}/.Xresources ] && xrdb ${HOME}/.Xresources

# For SLiM:
[ -n "$1" ] && exec "$1"

# Fallback in case we're not started through SLiM
exec xterm
I like that, does not xorg come with twm or that really light one that is nothing but xterms? I might use that instead of just one xterm.

I already experienced that one xterm in here, which btw saved my butt thanks. I am setting up another FreeBSD on my other laptop as I write this, I be sure to add that into its .xinitrc.

Code:
#!/usr/bin/env sh
 
[ -f ${HOME}/.Xresources ] && xrdb ${HOME}/.Xresources

# For SLiM:
[ -n "$1" ] && exec "$1"

# Fallback in case we're not started through SLiM
[ -x twm ] && exec twm || exec xterm
 
Back
Top