NetBSD Problem Report #54674

From www@netbsd.org  Tue Nov  5 01:07:28 2019
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 2714D7A1D6
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  5 Nov 2019 01:07:28 +0000 (UTC)
Message-Id: <20191105010727.061D47A25B@mollari.NetBSD.org>
Date: Tue,  5 Nov 2019 01:07:26 +0000 (UTC)
From: ballou@crab.qozzy.com
Reply-To: ballou@crab.qozzy.com
To: gnats-bugs@NetBSD.org
Subject: XFCE4: can only run startx once, must remove xfwm4.xml to run startx again
X-Send-Pr-Version: www-1.0

>Number:         54674
>Category:       pkg
>Synopsis:       XFCE4: can only run startx once, must remove xfwm4.xml to run startx again
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    youri
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 05 01:10:00 +0000 2019
>Closed-Date:    Sun Apr 30 00:50:34 +0000 2023
>Last-Modified:  Sun Apr 30 00:50:34 +0000 2023
>Originator:     Ken Ballou
>Release:        NetBSD 8.1
>Organization:
self
>Environment:
NetBSD localhost 8.1 NetBSD 8.1 (GENERIC) #0: Fri May 31 08:43:59 UTC 2019  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
On a pristine install with only xfce4 installed via pkgin, a user can only run startx once.  Further attempts to start xfce4 (whether the system has been rebooted or not) fail with a blank desktop.
>How-To-Repeat:
his is completely reproducible.  Note that I am installing NetBSD 8.1 on a VMware workstation (version 15.5.0 build-14665864).  The VM is allocated 2GB memory and 20GB on one single disk.  I assign 4096MB to the swap partition and the rest of the disk space to the root partition.
Steps to reproduce:

1.  Install NetBSD 8.1 from the boot.iso image (233,609,216 bytes).  Accept almost all defaults during the installation, and install all sets.  The only non-default choices is to install pkgin, assign a password to root, and create one non-root user (in the wheel group).  In particular, do NOT enable xdm.

2.  Log in to the newly installed system as root.  Use pkgin to install xfce4.

3.  Log out as root and log in as the non-root user configured in step 1.  Copy /usr/pkg/share/examples/xfce4/xinitrc to ~/.xinitrc, and chmod +x ~/.xinitr.

4.  Issue the command "startx".  Xfce starts as expected.

5.  Exit the desktop back to the shell prompt.  Issue the command "startx" again.  The desktop does not appear, although using "ps" from another terminal shows xfce processes running.

6.  Execute the command "rm ~/.config/xfce4/xfconf/xfce4-perchannel-xml/xfwm4.xml".

7.  Issue the command "startx".  Xfce4 starts normally.

Provided I remove the file xfwm4.xml from step 6, I can reliably run "startx" and xfce4 starts normally.  (As a workaround, I have included the rm command as the first line of .xinitrc.
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: port-amd64-maintainer->youri
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Tue, 05 Nov 2019 08:58:46 +0000
Responsible-Changed-Why:
Youri, can you please give it a look?
(over to x11/xfce4-session MAINTAINER)

(FTR, I have also changed the category from `port-amd64'
to `pkg', the issue sounds like indipendent to the port
and probably a `pkg' problem)


State-Changed-From-To: open->closed
State-Changed-By: gutteridge@NetBSD.org
State-Changed-When: Sun, 30 Apr 2023 00:50:34 +0000
State-Changed-Why:
Not reproducible for me (I do this all the time).

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.