Bug 174513

Summary: Enhancement, remove hardcoded window manager selection list
Product: [Fedora] Fedora Reporter: Chad Johnson <chadjamesjohnson>
Component: switchdeskAssignee: Than Ngo <than>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-01-22 14:21:10 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:
Attachments:
Description Flags
Same patch as mentioned in original description none

Description Chad Johnson 2005-11-29 17:11:02 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5

Description of problem:
The following patch extends switchdesk so that it can support any window manager that chooses to register support for itself with switchdesk.




--- switchdesk-helper.orig	2005-11-28 22:03:18.000000000 -0600
+++ switchdesk-helper	2005-11-28 23:07:19.000000000 -0600
@@ -39,6 +39,7 @@
 fi
 
 DESKTOP=`echo $1 |tr a-z A-Z`
+DESKTOPLC=`echo $1 |tr A-Z a-z`
 case $DESKTOP in
     KDE|KDE2)
         [ ! -x /usr/bin/startkde ] && NotFound KDE
@@ -89,8 +90,14 @@
         DNAME="System defaults"
         ;;
     *)
-        echo "Unknown desktop requested: $1"
-        exit 1
+        TESTXCLIENTS="$DATADIR/Xclients.$DESKTOPLC"
+        if [ -x "$TESTXCLIENTS" ]; then
+          DNAME="$DESKTOPLC"
+          NEW_XCLIENTS="$TESTXCLIENTS"
+        else
+          echo "Unknown desktop requested: $1"
+          exit 1
+        fi
         ;;
 esac

Version-Release number of selected component (if applicable):
switchdesk-4.0.6-3

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.
  

Additional info:

Comment 1 Chad Johnson 2005-11-29 17:13:13 UTC
Created attachment 121597 [details]
Same patch as mentioned in original description

Comment 2 Christian Iseli 2007-01-22 10:14:06 UTC
This report targets the FC3 or FC4 products, which have now been EOL'd.

Could you please check that it still applies to a current Fedora release, and
either update the target product or close it ?

Thanks.

Comment 3 Than Ngo 2007-01-22 14:21:10 UTC
it's fixed in switchdesk-4.0.8-7, which should be available in rawhide soon.
Thanks for you report.