Skip to content

Hide SYSVOL drives in KDE based desktop environments #95

Description

@garblixa

Hello, when KDE is used as the desktop environment, the Sysvol drives are visible, which can be confusing for users. The CIFS mount option x-gvfs-hide could hide these mounts in userspace.

The following change works for me:

/usr/lib/python3/dist-packages/linuxmusterLinuxclient7/shares.py

Replace:

mountCommand = [
    shutil.which("mount.cifs"),
    "-o",
    mountCommandOptions,
    networkPath,
    mountpoint
]

with:

if hiddenShare:
    mountCommandOptions += ",x-gvfs-hide"
    mountCommand = [
        shutil.which("mount"),
        "-t",
        "cifs",
        "-o",
        mountCommandOptions,
        networkPath,
        mountpoint
    ]
else:
    mountCommand = [
        shutil.which("mount.cifs"),
        "-o",
        mountCommandOptions,
        networkPath,
        mountpoint
    ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions