WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: .xsession ignores filenames with spaces in .X.d  (Read 3185 times)

Offline dentonlt

  • Sr. Member
  • ****
  • Posts: 318
    • the trombone analog
.xsession ignores filenames with spaces in .X.d
« on: June 20, 2010, 02:25:27 AM »
Perhaps this has been discussed? I couldn't find it anywhere.

.xsession can't handle "99 conky" due to the space in the filename. .xsession tries to load "99" then "conky". [EDIT: I'm on 2.11, but don't see this in the 2.11+ change lists]

One solution is to not uses spaces. :) Another is to quote the $F dereference in .xsession:

Code: [Select]
--- .xsession
+++ .xsession-new
@@ -8,4 +8,4 @@
   [ -x ./.setbackground ] && ./.setbackground
 fi
 [ -x ./.mouse_config ] && ./.mouse_config &
-XDIR=".X.d" &&  if [ -d $XDIR ]; then for F in $XDIR/*; do . $F; done; fi
+XDIR=".X.d" &&  if [ -d $XDIR ]; then for F in $XDIR/*; do . "$F"; done; fi

yes?
« Last Edit: June 20, 2010, 02:54:37 AM by dentonlt »