Bug 123545

Summary: switchdesk didn't delete .Xclients when command failed.
Product: [Fedora] Fedora Reporter: masanari iida <masanari_iida>
Component: switchdeskAssignee: Than Ngo <than>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 2   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-05-27 09:20:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description masanari iida 2004-05-19 09:11:08 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a)
Gecko/20040518

Description of problem:
First of all, I don't have ~/.Xclients, ~/.Xclients-default.
When I run " switchdesk xfce " without installing xfce,
the command return "ERROR: XFCE not installed!". This is correct
detection.
But at the same time, this command create .Xclients.
Then I run "startx" , X failed to start with following error message.

/home/hoge/.Xclients: line 8: /home/hoge/.Xclients-default: No Such
file or directory. 
/home/hoge/.Xclients: line 8: /home/hoge/.Xclients-default: cannot
execute: No such file or directory.

There is no .Xclients-default file. 
But in this case, I think, switchdesk should not create .Xclients
file if it was not there before.

Version-Release number of selected component (if applicable):
switchdesk-4.0.3-1

How reproducible:
Always

Steps to Reproduce:
1. Delete ~/.Xclients, ~/.Xclients-default file.
2. Make sure xfce filesets are not installed.
3. Run $ switchdesk xfce 
    

Actual Results:  switchdesk detect no XFCE filesets are installed,
then just quit.
At the moment, switchdesk creats ~/.Xclients. But no .Xclients-default.
After this, startx failed to start X Window.

Expected Results:  switchdesk detect no XFCE filesets are installed,
then just quit
without creating .Xclients (if the file is not exist before swithdesk
is executed).


Additional info:

  Workaround : Delete .Xclients and .Xclients-default.

Comment 1 Than Ngo 2004-05-27 09:20:47 UTC
it's fixed in 4.0.4-1, which will be showed up in next release. Many
thanks for your report.