https://bugs.kde.org/show_bug.cgi?id=519945

            Bug ID: 519945
           Summary: Shares not unmounted on KDE logout
    Classification: Applications
           Product: Smb4k
      Version First unspecified
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

DESCRIPTION

Smb4K does not unmount personal CIFS shares when logging out of a KDE Plasma
session, even when “Unmount all personal shares on exit” is enabled.

If I explicitly exit Smb4K from the system tray before logging out, the share
is unmounted correctly. However, if I use the normal KDE Logout action, the
share remains mounted after the user session has ended.

This suggests that Smb4K’s normal exit path performs the unmount correctly, but
the KDE session logout path does not trigger the same cleanup.

STEPS TO REPRODUCE

Log in to KDE Plasma as local user steve.
1. Mount a SMB/CIFS share in Smb4K, for example
//bs-fs01.brownserve.co.uk/steve.brown$.
2. Ensure that “Unmount all personal shares on exit” is enabled in Smb4K.
3. Log out using the normal KDE Logout action, without manually exiting Smb4K
first.
4. Log in as another local user, for example testuser, or otherwise inspect the
mounted filesystems.
5. Check whether the Smb4K share is still mounted under /run/smb4k/steve/... .

OBSERVED RESULT

The share remains mounted after logout.

In my case, the share is still present at:

/run/smb4k/steve/bs-fs01.brownserve.co.uk/steve.brown$

The mount is only removed if I manually right-click the Smb4K tray icon and
choose Exit before logging out.

Relevant findmnt output while mounted:

//bs-fs01.brownserve.co.uk/steve.brown$
/run/smb4k/steve/bs-fs01.brownserve.co.uk/steve.brown$ cifs
rw,relatime,vers=3.1.1,cache=strict,upcall_target=app,username=steve.brown,domain=brownserve,uid=1000,forceuid,gid=1000,forcegid,addr=192.168.25.11,file_mode=0750,dir_mode=0750,soft,nounix,serverino,mapposix,reparse=nfs,nativesocket,symlink=native,rsize=4194304,wsize=4194304,bsize=1048576,echo_interval=60,actimeo=1,closetimeo=1

Relevant journal snippets from a test where I logged out and switched users:

Apr 18 00:58:08 wednesday systemd[1]: Created slice Slice
/system/dbus-:1.3-org.kde.smb4k.mounthelper.
Apr 18 00:58:08 wednesday systemd[1]: Started
dbus-:[email protected]
.
Apr 18 00:58:08 wednesday kernel: CIFS: Attempting to mount
//bs-fs01.brownserve.co.uk/steve.brown$
Apr 18 00:58:19 wednesday systemd[1]:
dbus-:[email protected]
: Deactivated successfully.
...
Apr 18 00:58:28 wednesday systemd[1]: run-user-1000-gvfs.mount: Deactivated
successfully.
Apr 18 00:58:28 wednesday systemd[1]: run-user-1000-doc.mount: Deactivated
successfully.
Apr 18 00:58:39 wednesday systemd[1]: run-user-1000.mount: Deactivated
successfully.

I do not see the Smb4K share itself being unmounted during logout.

EXPECTED RESULT

When the user logs out of KDE Plasma, Smb4K should unmount personal shares if
“Unmount all personal shares on exit” is enabled.

The mounted share should not remain available under /run/smb4k/<user>/... after
the user session has ended.

SOFTWARE/OS VERSIONS

Operating System: Arch Linux
KDE Plasma Version: 6.6.4
KDE Frameworks Version: 6.25.0
Qt Version: 6.11.0
Smb4K Version:  4.0.6

ADDITIONAL INFORMATION

Brought over from the smb4k forum:
https://sourceforge.net/p/smb4k/discussion/help/thread/39d722ac54

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to