<?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>498529</bug_id>
          
          <creation_ts>2025-01-11 13:41:27 +0000</creation_ts>
          <short_desc>enabling krdp from systemsettings does not work</short_desc>
          <delta_ts>2025-08-19 13:45:28 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>KRdp</product>
          <component>general</component>
          <version>6.3.5</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>1</everconfirmed>
          <reporter>slartibart70</reporter>
          <assigned_to name="Unassigned bugs">unassigned-bugs-null</assigned_to>
          <cc>ahiemstra</cc>
    
    <cc>ilia-kats</cc>
    
    <cc>john</cc>
    
    <cc>mikesmith929+kde</cc>
    
    <cc>miso</cc>
    
    <cc>nate</cc>
    
    <cc>putr4.s</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/krdp/-/commit/011198c63c1e23d3ce71166a62ca4be1a804d4c6</cf_commitlink>
          <cf_versionfixedin>6.5.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2388661</commentid>
    <comment_count>0</comment_count>
    <who name="">slartibart70</who>
    <bug_when>2025-01-11 13:41:27 +0000</bug_when>
    <thetext>I am using krdpserver successfully on commandline and can connect to the machine using e.g. xfreerdp
server:  krdpserver -u username -p xxx --quality 100

There is also a systemsettings page called &apos;remote desktop&apos; where we can define user and enable the server using a UI-toggle.
see also: https://invent.kde.org/plasma/krdp/-/blob/master/README.md

But, the server presumably never starts when toggling this in the UI?
(contrast this to running directly on commandline, then all is fine)

Moreover, i am missing feedback from the server-side, like e.g. having access to the logs from the ui to figure out any problems.
(this is more of an enhancement, but a welcome one...)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2392218</commentid>
    <comment_count>1</comment_count>
    <who name="Mike Smith">mikesmith929+kde</who>
    <bug_when>2025-01-24 05:57:15 +0000</bug_when>
    <thetext>(In reply to slartibart70 from comment #0)
&gt; I am using krdpserver successfully on commandline and can connect to the
&gt; machine using e.g. xfreerdp
&gt; server:  krdpserver -u username -p xxx --quality 100
&gt; 
&gt; There is also a systemsettings page called &apos;remote desktop&apos; where we can
&gt; define user and enable the server using a UI-toggle.
&gt; see also: https://invent.kde.org/plasma/krdp/-/blob/master/README.md
&gt; 
&gt; But, the server presumably never starts when toggling this in the UI?
&gt; (contrast this to running directly on commandline, then all is fine)
&gt; 
&gt; Moreover, i am missing feedback from the server-side, like e.g. having
&gt; access to the logs from the ui to figure out any problems.
&gt; (this is more of an enhancement, but a welcome one...)

That is strange it works for me. Though the behavior of the server is not consistent. Sometimes the server when a client connects to it will popup a dialog asking for permission for remote access, sometimes it just works without the interactive user having to allow. 

I agree access to the logs from the ui to figure out any problems would rock +1 for sure.

Sorry not much help but for the server logs can you try running: journalctl --user-unit=plasma-krdp_server 

I think that should produce the logs you are looking for.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2405605</commentid>
    <comment_count>2</comment_count>
    <who name="Prajna Sariputra">putr4.s</who>
    <bug_when>2025-03-07 06:07:46 +0000</bug_when>
    <thetext>I&apos;m also running into this issue with Plasma 6.3.2 on Arch Linux, and I&apos;m quite sure the GUI toggle worked just fine in either 6.1.x or 6.2.x before. If I monitor the output of  &quot;journalctl -f&quot; the only message I get is &quot;Toggling KRDP server to true over QDBus&quot; and nothing else actually happens.

That said, it looks like running &quot;systemctl --user enable app-org.kde.krdpserver.service&quot; is enough to make the GUI switch to turn on/off KRdp work for me, but turning on autostart from the GUI or the aforementioned systemctl command doesn&apos;t work with the error message &quot;job deleted to avoid ordering cycle&quot; from systemd.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2408676</commentid>
    <comment_count>3</comment_count>
    <who name="Prajna Sariputra">putr4.s</who>
    <bug_when>2025-03-18 03:47:21 +0000</bug_when>
    <thetext>Oh, turns out the issue I was running into is actually https://bugs.kde.org/show_bug.cgi?id=500017, which is now fixed with KDE Plasma 6.3.3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2415528</commentid>
    <comment_count>4</comment_count>
    <who name="John Kizer">john</who>
    <bug_when>2025-04-13 05:00:16 +0000</bug_when>
    <thetext>For the bug reporter - could you please double-check if you are still experiencing the issue on Plasma 6.3.3 or later? (Thanks Prajna for the reference to that!)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2416149</commentid>
    <comment_count>5</comment_count>
    <who name="Michal Hlavac">miso</who>
    <bug_when>2025-04-15 17:12:55 +0000</bug_when>
    <thetext>Can confirm this behaviour on plasma 6.3.4 
Using latest openSUSE Tumbleweed and turning checkbox &quot;Enable RDP Server&quot; do nothing.

systemctl --user status app-org.kde.krdpserver.service
○ app-org.kde.krdpserver.service - KRDP Server
     Loaded: loaded (/usr/lib/systemd/user/app-org.kde.krdpserver.service; disabled; preset: disabled)
     Active: inactive (dead)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2416152</commentid>
    <comment_count>6</comment_count>
    <who name="Michal Hlavac">miso</who>
    <bug_when>2025-04-15 17:22:57 +0000</bug_when>
    <thetext>If the checkbox &quot;Autostart on login&quot; is enabled, it works, otherwise it doesn&apos;t work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2438742</commentid>
    <comment_count>7</comment_count>
    <who name="Ilia Kats">ilia-kats</who>
    <bug_when>2025-07-05 16:32:41 +0000</bug_when>
    <thetext>I think this is because the systemd unit file got renamed from plasma-krdp_server.service to app-org.kde.krdpserver.service, but the corresponding code in https://invent.kde.org/plasma/krdp/-/blob/master/src/kcm/kcmkrdpserver.cpp?ref_type=heads#L33 was not changed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2448558</commentid>
    <comment_count>8</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-08-19 13:45:28 +0000</bug_when>
    <thetext>Git commit 011198c63c1e23d3ce71166a62ca4be1a804d4c6 by Nate Graham, on behalf of Arnav Rawat.
Committed on 19/08/2025 at 13:45.
Pushed by ngraham into branch &apos;master&apos;.

Change name of service used

The alias in the service spec isn&apos;t actually used, since the server is
almost never going to be enabled:

&quot;Unit files may specify aliases through the Alias= directive in the
[Install] section. When the unit is enabled, symlinks will be created
for those names, and removed when the unit is disabled.&quot;

So just use the actual service name; there are no other consumers of
the alias (wouldn&apos;t have been able to use it anyways)

Fixes turning on the server from systemsettings
FIXED-IN: 6.5.0

M  +1    -1    server/SessionController.cpp
M  +0    -1    server/app-org.kde.krdpserver.service.in
M  +1    -1    src/kcm/kcmkrdpserver.cpp

https://invent.kde.org/plasma/krdp/-/commit/011198c63c1e23d3ce71166a62ca4be1a804d4c6</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>