From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Subject: bug#18698: Our WindowMaker wrapper pollutes PATH in the entire X session Date: Wed, 11 Feb 2015 20:32:50 +0800 Message-ID: <87egpwd3wt.fsf@gmail.com> References: <877g04iyku.fsf@yeeloong.lan> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLWTb-0003CX-Gw for bug-guix@gnu.org; Wed, 11 Feb 2015 07:33:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLWTW-0003cC-IL for bug-guix@gnu.org; Wed, 11 Feb 2015 07:33:07 -0500 Received: from debbugs.gnu.org ([140.186.70.43]:48646) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLWTW-0003c8-Eg for bug-guix@gnu.org; Wed, 11 Feb 2015 07:33:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YLWTV-0004GD-Qk for bug-guix@gnu.org; Wed, 11 Feb 2015 07:33:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: 18698@debbugs.gnu.org Ricardo Wurmus writes: > The fix may have resulted in unintended side-effects. On a fresh > installation of the System Distribution v0.8.1 WindowMaker is installed > by default, but it is not completely functional. > > For example, the attempt to change the style via the menu results in > this error to be displayed: > > Could not execute command: > setstyle /gnu/store/...windowmaker.../share/WindowMaker/Styles/Black.style > > Likewise, selecting "Configure Window Maker" from the right-click menu > results in this error: > > Could not execute command: exec WPrefs > > The "setstyle" executable is located in > /gnu/store/...windowmaker.../bin/, but is not in the PATH. Yes, the $out/bin of windowmaker is not in $PATH, and same for sawfish. Instead of wrapping every executable of session-type, we can: #1: Add the package to system profile ('packages'). It's not clear to me how to do it now, until we have something like the NixOS's module system. #2: Make SLiM use '/run/current-system/profile/share/xsessions' as session_dir. So simply add a package providing xsession file to 'packages' should make it available to SLiM. And all DE and many window-managers provide xsession files already (eg: openbox, sawfish, xfce), we can patch the rest (eg: WindowMaker) to install one. I would like to go #2, WDYT?