Bug 512800

Summary: Listening port (5900) does not change until logged out and back in
Product: [Applications] krfb Reporter: Blazer Silving <breakingspell>
Component: generalAssignee: George Goldberg <grundleborg>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Blazer Silving 2025-11-30 16:47:25 UTC
SUMMARY
I use virt-viewer (SPICE) to interact with virtual machine displays, this defaults to localhost:5900. Obviously this conflicts with VNC, so I've historically used port 5901 for my host machine's x11vnc and 5902 to access any TightVNC instances in Windows guests. In this instance, I want to use 5903 for the krfb service. 

In krfb, the configured listening port does not become active until the entire Wayland session is logged out and back in. 

STEPS TO REPRODUCE
1. Log into fresh profile and open krfb
2. Configure a non-standard VNC port (default 5900)
3. The port does not update upon closing settings (no auto-restart on configure)
4. The port does not update when closing and re-opening krfb
5. The port becomes active after a full log off/log on. 

EXPECTED RESULT
The VNC server should immediately restart and use the new port once configured in the settings, not afterwards. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.1

ADDITIONAL INFORMATION