<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>455370</bug_id>
          
          <creation_ts>2022-06-15 23:06:38 +0000</creation_ts>
          <short_desc>Unable to use alternative Window Managers</short_desc>
          <delta_ts>2024-04-25 14:34:12 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>kwin</product>
          <component>general</component>
          <version>5.25.0</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Adam Tazul">adam_tazul</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>adam_tazul</cc>
    
    <cc>Hi-Angel</cc>
    
    <cc>kde</cc>
    
    <cc>kde</cc>
    
    <cc>natalie_clarius</cc>
    
    <cc>skeletonadventure</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      <flag name="X11"
          id="4739"
          type_id="32"
          status="+"
          setter="adam_tazul"
    />

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2131650</commentid>
    <comment_count>0</comment_count>
      <attachid>149767</attachid>
    <who name="Adam Tazul">adam_tazul</who>
    <bug_when>2022-06-15 23:06:38 +0000</bug_when>
    <thetext>Created attachment 149767
Example script, launching XMonad as the Window Manager

SUMMARY
(Sorry if this is not in the right section, I&apos;m not 100% sure where this bug falls)
In previous versions of KDE Plasma, setting the KDEWM environment variable to another Window Manager on your system would force Plasma to spawn that as the Window Manager in place of Kwin. Since 5.25, no matter what method is used to set the environment variable.

STEPS TO REPRODUCE
1. Install and set up an alternative Window Manager of choice for use with KDE Plasma (X11)
2. Set the KDEWM environment variable using a pre-startup script in ~/.config/plasma-workspace/env/

OBSERVED RESULT
KDE Plasma spawns Kwin

EXPECTED RESULT
KDE Plasma spawns the specified Window Manager

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux Rolling, all testing and unstable repo&apos;s enabled
Kernel version: 5.18.3-arch1-1
(available in About System)
KDE Plasma Version: 5.25.0
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.4

ADDITIONAL INFORMATION
N/A</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2131653</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Tazul">adam_tazul</who>
    <bug_when>2022-06-15 23:12:07 +0000</bug_when>
    <thetext>(In reply to Adam Tazul from comment #0)
&gt; Since 5.25, no matter what method is used to set the environment variable.

No matter what is set as KDEWM, it spawn Kwin instead of your WIndow Manager of choice***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2131654</commentid>
    <comment_count>2</comment_count>
      <attachid>149768</attachid>
    <who name="Adam Tazul">adam_tazul</who>
    <bug_when>2022-06-15 23:13:50 +0000</bug_when>
    <thetext>Created attachment 149768
Example .desktop file from /usr/share/xsessions/, launching XMonad as the Window Manager</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2131709</commentid>
    <comment_count>3</comment_count>
    <who name="Antonio Rojas">arojas</who>
    <bug_when>2022-06-16 06:38:30 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 439481 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2132068</commentid>
    <comment_count>4</comment_count>
    <who name="">skeletonadventure</who>
    <bug_when>2022-06-17 00:24:25 +0000</bug_when>
    <thetext>(In reply to Antonio Rojas from comment #3)
&gt; 
&gt; *** This bug has been marked as a duplicate of bug 439481 ***

These are not duplicates, as evidenced by the &quot;steps to reproduce&quot;. In 439481 the environment variable KDEWM is not set, in this bug report it has been set, and as described by https://userbase.kde.org/Tutorials/Using_Other_Window_Managers_with_Plasma this should result in the specified binary being started instead of Kwin.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2132069</commentid>
    <comment_count>5</comment_count>
    <who name="">skeletonadventure</who>
    <bug_when>2022-06-17 00:46:46 +0000</bug_when>
    <thetext>My bad upon further reading, it seems the issues are similar, though still a key difference in the use of systemdboot. I am to assume the KDEWM variable feature been silently removed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2132100</commentid>
    <comment_count>6</comment_count>
    <who name="Antonio Rojas">arojas</who>
    <bug_when>2022-06-17 06:05:25 +0000</bug_when>
    <thetext>(In reply to skeletonadventure from comment #5)
&gt; My bad upon further reading, it seems the issues are similar, though still a
&gt; key difference in the use of systemdboot. 

It&apos;s not. You are using systemd boot because that&apos;s the default in 5.25.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2134358</commentid>
    <comment_count>7</comment_count>
    <who name="Adam Tazul">adam_tazul</who>
    <bug_when>2022-06-24 12:45:59 +0000</bug_when>
    <thetext>(In reply to Antonio Rojas from comment #6)
&gt; It&apos;s not. You are using systemd boot because that&apos;s the default in 5.25.

Shouldn&apos;t the KDEWM environment variable be read when using systemd boot?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2136663</commentid>
    <comment_count>8</comment_count>
    <who name="Johannes Jordan">kde</who>
    <bug_when>2022-07-03 11:00:33 +0000</bug_when>
    <thetext>Defaulting to systemd boot is a regression for any users of custom WMs. The update simply breaks the setup.

Also following the tutorial doesn&apos;t work anymore: https://userbase.kde.org/Tutorials/Using_Other_Window_Managers_with_Plasma

If KDEWM variable cannot be supported, there should be at least a guideline on how to use a custom WM with newer Plasma versions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2144715</commentid>
    <comment_count>9</comment_count>
    <who name="Natalie Clarius">natalie_clarius</who>
    <bug_when>2022-08-10 00:48:25 +0000</bug_when>
    <thetext>Instructions on how to run a custom WM with systemd boot enabled can be found in the Arch wiki: https://wiki.archlinux.org/title/KDE#Use_a_different_window_manager

TL;DR: Create a systemd user unit for your preferred WM and mask the kwin service.

This should be updated on https://userbase.kde.org/Tutorials/Using_Other_Window_Managers_with_Plasma.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>149767</attachid>
            <date>2022-06-15 23:06:38 +0000</date>
            <delta_ts>2022-06-15 23:06:38 +0000</delta_ts>
            <desc>Example script, launching XMonad as the Window Manager</desc>
            <filename>set_window_manager.sh</filename>
            <type>application/x-shellscript</type>
            <size>50</size>
            <attacher name="Adam Tazul">adam_tazul</attacher>
            
              <data encoding="base64">IyEvdXNyL2Jpbi9lbnYgYmFzaAoKZXhwb3J0IEtERVdNPS91c3IvYmluL3htb25hZAo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>149768</attachid>
            <date>2022-06-15 23:13:50 +0000</date>
            <delta_ts>2022-06-15 23:13:50 +0000</delta_ts>
            <desc>Example .desktop file from /usr/share/xsessions/, launching XMonad as the Window Manager</desc>
            <filename>xmonad-kde.desktop</filename>
            <type>application/x-desktop</type>
            <size>243</size>
            <attacher name="Adam Tazul">adam_tazul</attacher>
            
              <data encoding="base64">W0Rlc2t0b3AgRW50cnldClZlcnNpb249MS4wClR5cGU9QXBwbGljYXRpb24KTmFtZT1YbW9uYWQg
S0RFCkNvbW1lbnQ9TGlnaHR3ZWlnaHQgWDExIHRpbGVkIHdpbmRvdyBtYW5hZ2VyIHdyaXR0ZW4g
aW4gSGFza2VsbApFeGVjPWVudiBLREVXTT0vdXNyL2Jpbi94bW9uYWQgc3RhcnRwbGFzbWEteDEx
Ckljb249eG1vbmFkClRlcm1pbmFsPWZhbHNlClN0YXJ0dXBOb3RpZnk9ZmFsc2UKQ2F0ZWdvcmll
cz1BcHBsaWNhdGlvbjsK
</data>

          </attachment>
      

    </bug>

</bugzilla>