Bug 502809 - kdenetwork-filesharing doesn't work with users managed by systemd-homed
Summary: kdenetwork-filesharing doesn't work with users managed by systemd-homed
Status: REPORTED
Alias: None
Product: kdenetwork-filesharing
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-14 21:20 UTC by Angel Sherry
Modified: 2025-04-15 09:17 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
The sharing tab is empty (46.74 KB, image/png)
2025-04-14 21:20 UTC, Angel Sherry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Angel Sherry 2025-04-14 21:20:22 UTC
Created attachment 180270 [details]
The sharing tab is empty

SUMMARY

kdenetwork-filesharing does not work with users managed by systemd-homed, even when they are members of the sambashare group. The "Sharing" tab in Dolphin does not display any information.

The following error appears in the terminal:

PermissionsHelper::reload() failed: current user is null
qrc:/org.kde.filesharing.samba/qml/main.qml:39: TypeError: Cannot read property 'inSamba' of null

STEPS TO REPRODUCE

1. Enable systemd-homed and create a user.
2. Start the SMB and NMB services.
3. Add the user to the sambashare group and use sudo smbpasswd -a <username> to add the user to Samba.
4. Right-click on a file or directory in Dolphin and navigate to the "Sharing" tab.

OBSERVED RESULT

The "Sharing" tab is empty and no sharing options are available.

EXPECTED RESULT

The "Sharing" tab should display the Samba share settings for the selected file or directory.

SOFTWARE/OS VERSIONS

    Operating System: Garuda Linux
    KDE Plasma Version: 6.3.4
    KDE Frameworks Version: 6.12.0
    Qt Version: 6.9.0
    Kernel Version: 6.9.9-zen1-1-zencjk (64-bit)
    Graphics Platform: Wayland
    Processors: 16 × AMD Ryzen 9 5900HX with Radeon Graphics
    Memory: 30.7 GiB of RAM
    Graphics Processors: AMD Radeon Graphics, NVIDIA GeForce RTX 3070 Laptop GPU
    Manufacturer: ASUSTeK COMPUTER INC.
    Product Name: ASUS TUF Gaming A15 FA506QR_FA506QR
    System Version: 1.0

ADDITIONAL INFORMATION

    kdenetwork-filesharing version: 24.12.3-1
    systemd version: 257.5-1

When using a user that is not managed by systemd-homed, the "Sharing" tab functions as expected.

Here is my nsswitch.conf:

# Name Service Switch configuration file.
# See nsswitch.conf(5) for details.

passwd: files systemd
group: files [SUCCESS=merge] systemd
shadow: files systemd
gshadow: files systemd

publickey: files

hosts: mymachines mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] files myhostname dns
networks: files

protocols: files
services: files
ethers: files
rpc: files

netgroup: files