You are not logged in.

#1 2011-09-01 14:11:30

Aeriel
Member
Registered: 2011-09-01
Posts: 2

[SOLVED] [dwm] Can't start dwm

Hi!

I've recently entered the world of tiling WM and started with dwm.
Since I'm kinda insecure, and wanted to keep gnome as well, I've followed every single step in the wiki article and used the ~/.Xclients way, so I could start dwm from gdm (I've followed also the steps in the discussion page as well).
Then, when I tried to startup dwm from gdm, it doesn't start, and goes back again to gdm.

My ~/.Xclients file is the following:

setxkbmap -layout pt 

#relogio
while true; do
   xsetroot -name "$( date +"%F %R" )"
   sleep 1m    # Update time every minute
done &

# #estado da bateria
# while true; do
# 	batt=$(LC_ALL=C acpi -b)

# 	case $batt in
# 	*Discharging*)
# 		batt="${batt#* * * }"
# 		batt="${batt%%, *} "
# 		;;
# 	*)
# 		batt=""
# 		;;
# 	esac

# 	xsetroot -name "$batt$(date +%R)"

# 	sleep 60
# done &

#conky bar
conky | while read -r; do xsetroot -name "$REPLY"; done &
#executar o dwm
exec dwm

It's all things copied from the wiki page, just for testing if everything was fine...

My /usr/share/xsessions/dwm.desktop file is:

[Desktop Entry]
Encoding=UTF-8
Name=Dwm
Comment=Dynamic window manager
Exec=/usr/local/bin/dwm
Icon=dwm
Type=XSession

And I've created a /usr/share/xsessions/user.desktop file that looks like this:

[Desktop Entry]
Encoding=UTF-8
Name=User XSession script
Comment=Runs your ~./Xsession script
Exec=/etc/X11/Xsession
Type=Application

Thanks in advance for any help, I've searched the forums and used google and couldn't find any answer to this problem :S

Last edited by Aeriel (2011-09-01 17:19:02)

Offline

#2 2011-09-01 16:17:32

haxit
Member
From: /home/haxit
Registered: 2008-03-04
Posts: 1,247
Website

Re: [SOLVED] [dwm] Can't start dwm

Aeriel wrote:
[Desktop Entry]
Encoding=UTF-8
Name=Dwm
Comment=Dynamic window manager
Exec=/usr/local/bin/dwm
Icon=dwm
Type=XSession

My dwm.desktop file has

[Desktop Entry]
Encoding=UTF-8
Name=Dwm
Comment=Dynamic window manager
Exec=dwm
Icon=dwm
Type=XSession

as opposed to what you have there. So you could try that. Also there is no /usr/local/bin/dwm file on my computer, you should check that for your computer as well.

Edit: Why don't you just use .xinitrc?

Last edited by haxit (2011-09-01 16:21:12)


Archi686 User | Old Screenshots | Old .Configs
Vi veri universum vivus vici.

Offline

#3 2011-09-01 16:49:23

Aeriel
Member
Registered: 2011-09-01
Posts: 2

Re: [SOLVED] [dwm] Can't start dwm

haxit, thanks I've managed to solve the problem! big_smile

I've installed SLiM and set up everything in .xinitrc.

The dwm.desktop doesn't match with yours because I've changed somethings and because I didn't backup the file (I know, it's super dumb and stupid) I had to paste the defaults I found in the web.
Thanks. big_smile

Fellow gdm and dwm users, an advice, put everything in .xinitrc. It's easier. big_smile

Last edited by Aeriel (2011-09-01 17:19:30)

Offline

#4 2011-09-01 17:16:17

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] [dwm] Can't start dwm

Please mark as solved.

Offline

Board footer

Powered by FluxBB