From owner-freebsd-questions@freebsd.org Fri Jan 20 20:46:59 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7DCF6CB94C2 for ; Fri, 20 Jan 2017 20:46:59 +0000 (UTC) (envelope-from holindho@saunalahti.fi) Received: from vs21.mail.saunalahti.fi (vs21.mail.saunalahti.fi [193.64.193.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vs21.mail.saunalahti.fi", Issuer "vs21.mail.saunalahti.fi" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3FC4F1AA8 for ; Fri, 20 Jan 2017 20:46:58 +0000 (UTC) (envelope-from holindho@saunalahti.fi) Received: from vs21.mail.saunalahti.fi (localhost [127.0.0.1]) by vs21.mail.saunalahti.fi (Postfix) with ESMTP id 90DB32006F for ; Fri, 20 Jan 2017 22:41:33 +0200 (EET) Received: from gw03.mail.saunalahti.fi (gw03.mail.saunalahti.fi [195.197.172.111]) by vs21.mail.saunalahti.fi (Postfix) with ESMTP id 85CA920066 for ; Fri, 20 Jan 2017 22:41:33 +0200 (EET) Received: from crow.local (62-78-248-13.bb.dnainternet.fi [62.78.248.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by gw03.mail.saunalahti.fi (Postfix) with ESMTPSA id 7421A20007 for ; Fri, 20 Jan 2017 22:41:31 +0200 (EET) Subject: Re: Shutdown from WindowMaker when using Xdm To: freebsd-questions@freebsd.org References: From: Heikki Lindholm Message-ID: <9cb23f04-161d-90da-c1c0-7b863100292b@saunalahti.fi> Date: Fri, 20 Jan 2017 22:41:26 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jan 2017 20:46:59 -0000 20.1.2017, 22.17, Marco Beishuizen kirjoitti: > Hi, > > What is a good and clean way to shutdown the system from a windowmanager > (in my case WindowMaker), and using xdm? I did add a menuitem containing > "shutdown -p now", but then WM sometimes coredumps. So I get the > impression that this method isn't the best way to do it. Just exiting > the WM is possible, but then the system exits to the login screen, > without the possibility of shutting down from there. > > So is there a clean way of shutting down from WM? Cannot answer that, but just set up a GNUstep environment with WindowMaker myself. I used wdm instead of xdm and it has the option to shutdown and reboot, although you have to enable them from the config file. If exiting the wm always implies shutdown for you, maybe adding shutdown -p to your .xsession after the wm exits would work. -- Heikki Lindholm