From: R. Steve McKown Date: Fri, 24 Jul 2015 19:38:08 +0000 (-0600) Subject: dwmrc: clarify how this script is called on startup X-Git-Url: https://oss.titaniummirror.com/gitweb?p=smckown%2Fdotfiles.git;a=commitdiff_plain;h=f01b70cccbb4ad7ce3e8e28fcb55be47deb7fff1 dwmrc: clarify how this script is called on startup --- diff --git a/dwmrc b/dwmrc index ee83f3e..3bcf522 100755 --- a/dwmrc +++ b/dwmrc @@ -1,15 +1,11 @@ #!/bin/bash # -# Probably called from a /usr/share/xsessions/somesession.desktop that lists an -# exec like dwm.custom, and the dwm.custom executable script looks like: -# -# #!/bin/bash -# -# if [ -f "$HOME/.dwmrc" ]; then -# exec "$HOME/.dwmrc" -# else -# exec dwm.custom -# fi +# Startup on my Ubuntu 14.04 system works like this: +# - lightdm finds /usr/share/xsessions/dwm.desktop +# - This desktop file launches dwm.user, which is found in /usr/bin +# - /usr/bin/dwm.user is a script that execs $HOME/.dwmrc, if present, else it +# execs dwm. +# - This is my dwmrc, which installs as ~/.dwmrc # Although the system startup merged ~/.Xresources, it did so with the -nocpp # option (Ubuntu 14.04), which prevents the use of #define, etc. Re-merge here