[GH-ISSUE #6000] gwenview: cannot move files into Trash directory #3152

Closed
opened 2026-05-05 09:46:58 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @ghost on GitHub (Sep 12, 2023).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6000

Description

When using Gwenview (default profile), using Del on an image does not move it to Trash. Instead, it gives a prompt that the name "trash:/" is already in use. I have no idea which profile variable could allow access to trash:/, it was not as simple as noblacklisting the ~/.local/share/Trash and/or .../Trash/files directory.

Steps to Reproduce

Steps to reproduce the behavior

  1. firejail gwenview
  2. Select an image
  3. Press Del
  4. An older item named 'trash:/' already exists. Rename:

Expected behavior

The image is moved to the Trash bin.

Actual behavior

An older item named 'trash:/' already exists. Rename:

Behavior without a profile

Works as expected.

Additional context

N/A

Environment

  • Arch Linux (KDE)
  • firejail version 0.9.72

Checklist

  • The issues is caused by firejail (i.e. running the program by path (e.g. /usr/bin/vlc) "fixes" it).
  • I can reproduce the issue without custom modifications (e.g. globals.local).
  • The program has a profile. (If not, request one in https://github.com/netblue30/firejail/issues/1139)
  • The profile (and redirect profile if exists) hasn't already been fixed upstream.
  • I have performed a short search for similar issues (to avoid opening a duplicate).
    • I'm aware of browser-allow-drm yes/browser-disable-u2f no in firejail.config to allow DRM/U2F in browsers.
  • I used --profile=PROFILENAME to set the right profile. (Only relevant for AppImages)

Log

Output of firejail gwenview ~/Pictures/[an_image]

Reading profile /etc/firejail/gwenview.profile
Reading profile /home/bws/.config/firejail/gwenview.local
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-exec.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-shell.inc
Reading profile /etc/firejail/whitelist-run-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Parent pid 41278, child pid 41279
45 programs installed in 62.09 ms
Warning: skipping alternatives for private /etc
Warning: skipping kde4rc for private /etc
Warning: skipping kde5rc for private /etc
Warning: skipping ld.so.preload for private /etc
Private /etc installed in 9.63 ms
Private /usr/etc installed in 0.00 ms
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Warning: not remounting /run/user/1000/doc
Warning: NVIDIA card detected, nogroups command ignored
Warning: NVIDIA card detected, nogroups command ignored
Warning: cleaning all supplementary groups
Warning: Cannot confine the application using AppArmor.
Maybe firejail-default AppArmor profile is not loaded into the kernel.
As root, run "aa-enforce firejail-default" to load it.
Child process initialized in 163.92 ms
kf.config.core: Created a KConfigGroup on an inaccessible config location "baloofilerc" "Basic Settings"
UdevQt: unable to create udev monitor connection
kf.i18n.kuit: "Unknown subcue ':whatsthis,' in UI marker in context {@info:whatsthis, %1 the action's text}."
kf.config.core: Created a KConfigGroup on an inaccessible config location "baloofilerc" "Basic Settings"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/qoi"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-aptus-mos"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-arq"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-bay"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-bmq"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-cap"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-cine"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-cs1"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-dc2"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-drf"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-dxo"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-epson-eip"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-epson-erf"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-fff"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-hasselblad-3fr"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-iiq"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-kodak-dcs"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-kodak-kc2"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-mamiya-mef"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-mfw"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-minolta-mdc"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-mng"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-obm"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-ori"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-ptx"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-pxn"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-qtk"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-r3d"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-raw"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-rdc"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-rwl"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-rwz"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-samsung-srw"
org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-sti"
org.kde.kdegraphics.gwenview.lib: Unresolved raw mime type  "image/x-samsung-srw"
kf.config.core: Created a KConfigGroup on an inaccessible config location "kwinrc" "org.kde.kdecoration2"

Same output with --debug enabled

The gwenview.local file is empty. I used it for testing which options may help, but I could not find any.

Originally created by @ghost on GitHub (Sep 12, 2023). Original GitHub issue: https://github.com/netblue30/firejail/issues/6000 ### Description When using Gwenview (default profile), using Del on an image does not move it to Trash. Instead, it gives a prompt that the name "trash:/" is already in use. I have no idea which profile variable could allow access to `trash:/`, it was not as simple as noblacklisting the ~/.local/share/Trash and/or .../Trash/files directory. ### Steps to Reproduce _Steps to reproduce the behavior_ 1. `firejail gwenview` 2. Select an image 3. Press `Del` 4. `An older item named 'trash:/' already exists. Rename:` ### Expected behavior The image is moved to the Trash bin. ### Actual behavior `An older item named 'trash:/' already exists. Rename:` ### Behavior without a profile Works as expected. ### Additional context _N/A_ ### Environment - Arch Linux (KDE) - firejail version 0.9.72 ### Checklist - [x] The issues is caused by firejail (i.e. running the program by path (e.g. `/usr/bin/vlc`) "fixes" it). - [x] I can reproduce the issue without custom modifications (e.g. globals.local). - [x] The program has a profile. (If not, request one in `https://github.com/netblue30/firejail/issues/1139`) - [x] The profile (and redirect profile if exists) hasn't already been fixed [upstream](https://github.com/netblue30/firejail/tree/master/etc). - [x] I have performed a short search for similar issues (to avoid opening a duplicate). - [x] I'm aware of `browser-allow-drm yes`/`browser-disable-u2f no` in `firejail.config` to allow DRM/U2F in browsers. - [x] I used `--profile=PROFILENAME` to set the right profile. (Only relevant for AppImages) ### Log <details> <summary>Output of <code>firejail gwenview ~/Pictures/[an_image]</code></summary> <p> ``` Reading profile /etc/firejail/gwenview.profile Reading profile /home/bws/.config/firejail/gwenview.local Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-exec.inc Reading profile /etc/firejail/disable-interpreters.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/disable-shell.inc Reading profile /etc/firejail/whitelist-run-common.inc Reading profile /etc/firejail/whitelist-var-common.inc Parent pid 41278, child pid 41279 45 programs installed in 62.09 ms Warning: skipping alternatives for private /etc Warning: skipping kde4rc for private /etc Warning: skipping kde5rc for private /etc Warning: skipping ld.so.preload for private /etc Private /etc installed in 9.63 ms Private /usr/etc installed in 0.00 ms Warning: /sbin directory link was not blacklisted Warning: /usr/sbin directory link was not blacklisted Warning: not remounting /run/user/1000/doc Warning: NVIDIA card detected, nogroups command ignored Warning: NVIDIA card detected, nogroups command ignored Warning: cleaning all supplementary groups Warning: Cannot confine the application using AppArmor. Maybe firejail-default AppArmor profile is not loaded into the kernel. As root, run "aa-enforce firejail-default" to load it. Child process initialized in 163.92 ms kf.config.core: Created a KConfigGroup on an inaccessible config location "baloofilerc" "Basic Settings" UdevQt: unable to create udev monitor connection kf.i18n.kuit: "Unknown subcue ':whatsthis,' in UI marker in context {@info:whatsthis, %1 the action's text}." kf.config.core: Created a KConfigGroup on an inaccessible config location "baloofilerc" "Basic Settings" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/qoi" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-aptus-mos" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-arq" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-bay" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-bmq" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-cap" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-cine" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-cs1" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-dc2" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-drf" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-dxo" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-epson-eip" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-epson-erf" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-fff" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-hasselblad-3fr" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-iiq" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-kodak-dcs" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-kodak-kc2" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-mamiya-mef" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-mfw" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-minolta-mdc" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-mng" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-obm" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-ori" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-ptx" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-pxn" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-qtk" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-r3d" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-raw" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-rdc" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-rwl" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-rwz" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-samsung-srw" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-sti" org.kde.kdegraphics.gwenview.lib: Unresolved raw mime type "image/x-samsung-srw" kf.config.core: Created a KConfigGroup on an inaccessible config location "kwinrc" "org.kde.kdecoration2" ``` _Same output with --debug enabled_ The `gwenview.local` file is empty. I used it for testing which options may help, but I could not find any. </p> </details>
Author
Owner

@ghost commented on GitHub (Sep 13, 2023):

... it was not as simple as noblacklisting the ~/.local/share/Trash ...

Hi, thanks for reporting. I've just installed gwenview on my Arch Linux box and adding the one line noblacklist ${HOME}/.local/share/Trash in ~/.config/firejail/gwenview.local does fix this for me. Granted, I use firejail from git to keep up with development. But AFAICT the gwenview.profile hasn't changed in comparison with 0.9.72 (besides a few cosmetic changes to the commented options).

Can you post output when you add that please? Alternatively you can add the command line option --noblacklist=${HOME}/.local/share/Trash.

<!-- gh-comment-id:1716826448 --> @ghost commented on GitHub (Sep 13, 2023): > ... it was not as simple as noblacklisting the ~/.local/share/Trash ... Hi, thanks for reporting. I've just installed gwenview on my Arch Linux box and adding the one line `noblacklist ${HOME}/.local/share/Trash` in `~/.config/firejail/gwenview.local` does fix this for me. Granted, I use firejail from git to keep up with development. But AFAICT the gwenview.profile hasn't changed in comparison with 0.9.72 (besides a few cosmetic changes to the commented options). Can you post output when you add that please? Alternatively you can add the command line option --noblacklist=${HOME}/.local/share/Trash.
Author
Owner

@ghost commented on GitHub (Sep 13, 2023):

Wow, I'm silly. It seems I only tried noblacklisting ~/.local/share/Trash/files not the entire .../Trash directory. Yes, you're correct: that fixes it for me as well.

Thanks for the solution and I apologize for the mistake.

<!-- gh-comment-id:1717615716 --> @ghost commented on GitHub (Sep 13, 2023): Wow, I'm silly. It seems I only tried noblacklisting `~/.local/share/Trash/files` not the entire `.../Trash` directory. Yes, you're correct: that fixes it for me as well. Thanks for the solution and I apologize for the mistake.
Author
Owner

@ghost commented on GitHub (Sep 13, 2023):

Thanks for the solution and I apologize for the mistake.

@shaggonit No worries, that can happen. It still can be considered as missing functionality IMO, so I've opened #6001 to add Trash support. Keep in mind that this will arrive in a future Firejail release. When that happens you can drop your current gwenview.local workaround (at least this relevant noblacklist).

<!-- gh-comment-id:1717645846 --> @ghost commented on GitHub (Sep 13, 2023): > Thanks for the solution and I apologize for the mistake. @shaggonit No worries, that can happen. It still can be considered as missing functionality IMO, so I've opened #6001 to add Trash support. Keep in mind that this will arrive in a future Firejail release. When that happens you can drop your current gwenview.local workaround (at least this relevant noblacklist).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#3152
No description provided.