[frameworks-kio] [Bug 498443] File copy is preserving SElinux label

[email protected] Thu, 02 Oct 2025 01:11:21 +0000
Newsgroups gmane.comp.kde.devel.kfm
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=3D498443

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
                 CC|                            |[email protected]
             Status|REPORTED                    |CONFIRMED

--- Comment #2 from [email protected] ---
I can reproduce this.

As a workaround, I've created a Dolphin service menu. My use case is very
simple: copy or move files to a specific folder that has the `svirt_image_t`
label. This folder is used to share files with my Virtual Machines.

1. `mkdir -p ~/.local/share/kio/servicemenus`
2. `touch ~/.local/share/kio/servicemenus/copy-mv-vm.desktop`
3. `sudo chmod +x ~/.local/share/kio/servicemenus/copy-mv-vm.desktop`
4. `nano ~/.local/share/kio/servicemenus/copy-mv-vm.desktop` (make sure to
replace user with your username)
[Desktop Entry]
Type=3DService
MimeType=3Dall/all;
Actions=3DCopyToVM;MoveToVM
X-KDE-Submenu=3DCopy/Move to VM

[Desktop Action CopyToVM]
Name=3DCopy to VM
Icon=3Dedit-copy
Exec=3Dcp -r %F /home/user/VM; notify-send --app-name Dolphin "Copied files=
 to
shared folder."

[Desktop Action MoveToVM]
Name=3DMove to VM
Icon=3Dedit-move
Exec=3Dcp -r %F /home/user/VM && rm -r %F; notify-send --app-name Dolphin "=
Moved
files to shared folder."

Restart Dolphin and there should be a new context menu entry when selecting
files/folders.

Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2
Kernel Version: 6.16.8-200.fc42.x86_64 (64-bit)

--=20
You are receiving this mail because:
You are on the CC list for the bug.=