Drag and drop from Nemo to app doesn't work

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Post Reply
vttiste
Level 1
Level 1
Posts: 7
Joined: Sat Sep 17, 2022 12:31 pm

Drag and drop from Nemo to app doesn't work

Post by vttiste »

Hello,

I noticed that drag and drop from the file manager Nemo to any apps (Brave, Signal, etc), doesn't load the file into the destination app. It does appear to work moving from Nemo to the destination app with a "+" icon but then on the destination app says "unable to load the selected attachement". It looks like some kind of access right is preventing the app to get the file.

I have read many articles and posts but I haven't found the answer so I am creating this thread.

Below my configuration:

System:
Kernel: 6.5.0-17-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 6.0.4 tk: GTK 3.24.33
wm: muffin vt: 7 dm: LightDM 1.30.0 Distro: Linux Mint 21.3 Virginia base: Ubuntu 22.04 jammy
Machine:
Type: Laptop System: LENOVO product: 82WK v: Legion Pro 5 16IRX8 serial: <superuser required>
Chassis: type: 10 v: Legion Pro 5 16IRX8 serial: <superuser required>
Mobo: LENOVO model: LNVNB161216 v: SDK0T76461 WIN serial: <superuser required> UEFI: LENOVO
v: KWCN42WW date: 09/15/2023
Battery:
ID-1: BAT0 charge: 82.3 Wh (100.0%) condition: 82.3/80.0 Wh (102.9%) volts: 16.7 min: 15.4
model: SMP L22M4PC0 type: Li-poly serial: <filter> status: Full cycles: 10
CPU:
Info: 16-core (8-mt/8-st) model: 13th Gen Intel Core i7-13700HX bits: 64 type: MST AMCP
smt: enabled arch: N/A rev: 2 cache: L1: 1.4 MiB L2: 14 MiB L3: 30 MiB
Speed (MHz): avg: 834 high: 1024 min/max: 800/2100:1500 cores: 1: 829 2: 948 3: 902 4: 800
5: 800 6: 800 7: 800 8: 905 9: 1024 10: 800 11: 801 12: 800 13: 800 14: 800 15: 800 16: 822
17: 800 18: 998 19: 800 20: 800 21: 800 22: 800 23: 800 24: 800 bogomips: 110592
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
Device-1: Intel vendor: Lenovo driver: i915 v: kernel ports: active: eDP-1 empty: none
bus-ID: 00:02.0 chip-ID: 8086:4688 class-ID: 0300
Device-2: NVIDIA vendor: Lenovo driver: nvidia v: 535.154.05 pcie: speed: 2.5 GT/s lanes: 8
ports: active: none off: HDMI-A-1 empty: DP-1,DP-2,eDP-2 bus-ID: 01:00.0 chip-ID: 10de:2860
class-ID: 0300
Device-3: Luxvisions Innotech Integrated Camera type: USB driver: uvcvideo bus-ID: 1-11:5
chip-ID: 30c9:00ac class-ID: fe01 serial: <filter>
Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: modesetting,nvidia
unloaded: fbdev,nouveau,vesa gpu: i915 display-ID: :0 screens: 1
Screen-1: 0 s-res: 6016x2560 s-dpi: 156 s-size: 980x417mm (38.6x16.4") s-diag: 1065mm (41.9")
Monitor-1: HDMI-1-0 pos: right res: 1920x1080 hz: 60 dpi: 305 size: 160x90mm (6.3x3.5")
diag: 184mm (7.2")
Monitor-2: eDP-1 pos: primary,left res: 4096x2560 dpi: 302 size: 345x215mm (13.6x8.5")
diag: 407mm (16")
OpenGL: renderer: Mesa Intel UHD Graphics (ADL-S GT1) v: 4.6 Mesa 23.0.4-0ubuntu1~22.04.1
direct render: Yes
Audio:
Device-1: Intel vendor: Lenovo driver: snd_hda_intel v: kernel bus-ID: 00:1f.3
chip-ID: 8086:7a50 class-ID: 0403
Device-2: NVIDIA vendor: Lenovo driver: snd_hda_intel v: kernel pcie: speed: 2.5 GT/s lanes: 8
bus-ID: 01:00.1 chip-ID: 10de:22bd class-ID: 0403
Sound Server-1: ALSA v: k6.5.0-17-generic running: yes
Sound Server-2: PulseAudio v: 15.99.1 running: yes
Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
Device-1: Intel driver: iwlwifi v: kernel port: N/A bus-ID: 00:14.3 chip-ID: 8086:7a70
class-ID: 0280
IF: wlp0s20f3 state: up mac: <filter>
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Lenovo driver: r8169
v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: 4000 bus-ID: 0c:00.0 chip-ID: 10ec:8168
class-ID: 0200
IF: enp12s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
IF-ID-1: lxcbr0 state: down mac: <filter>
Bluetooth:
Device-1: Intel type: USB driver: btusb v: 0.8 bus-ID: 1-14:6 chip-ID: 8087:0033 class-ID: e001
Report: hciconfig ID: hci0 rfk-id: 3 state: down bt-service: enabled,running rfk-block:
hardware: no software: yes address: <filter>
Drives:
Local Storage: total: 4.57 TiB used: 2.65 TiB (58.0%)
ID-1: /dev/nvme0n1 vendor: Western Digital model: WD BLACK SN850X 4000GB size: 3.64 TiB
speed: 63.2 Gb/s lanes: 4 type: SSD serial: <filter> rev: 624311WD temp: 36.9 C scheme: GPT
ID-2: /dev/nvme1n1 vendor: Samsung model: MZVL21T0HCLR-00BL2 size: 953.87 GiB speed: 63.2 Gb/s
lanes: 4 type: SSD serial: <filter> rev: CL1QGXA7 temp: 43.9 C scheme: GPT
Partition:
ID-1: / size: 686.46 GiB used: 476.45 GiB (69.4%) fs: ext4 dev: /dev/nvme0n1p1
ID-2: /boot/efi size: 256 MiB used: 69.3 MiB (27.1%) fs: vfat dev: /dev/nvme1n1p1
Swap:
ID-1: swap-1 type: file size: 2 GiB used: 256 KiB (0.0%) priority: -2 file: /swapfile
USB:
Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 16 rev: 2.0 speed: 480 Mb/s
chip-ID: 1d6b:0002 class-ID: 0900
Device-1: 1-1:2 info: Integrated Express ITE Device(8295) type: Keyboard,HID
driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 048d:c985
class-ID: 0300
Device-2: 1-4:3 info: HP X500 Optical Mouse type: Mouse driver: hid-generic,usbhid
interfaces: 1 rev: 2.0 speed: 1.5 Mb/s power: 100mA chip-ID: 03f0:0941 class-ID: 0301
Device-3: 1-6:4 info: Integrated Express ITE Device(8910) type: Keyboard
driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 048d:c103
class-ID: 0301
Device-4: 1-11:5 info: Luxvisions Innotech Integrated Camera type: Video driver: uvcvideo
interfaces: 3 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 30c9:00ac class-ID: fe01
serial: <filter>
Device-5: 1-14:6 info: Intel type: Bluetooth driver: btusb interfaces: 2 rev: 2.0
speed: 12 Mb/s power: 100mA chip-ID: 8087:0033 class-ID: e001
Hub-2: 2-0:1 info: Super-speed hub ports: 10 rev: 3.1 speed: 20 Gb/s chip-ID: 1d6b:0003
class-ID: 0900
Sensors:
System Temperatures: cpu: 43.0 C mobo: N/A
Fan Speeds (RPM): N/A
Repos:
Packages: 2734 apt: 2689 flatpak: 45
No active apt repos in: /etc/apt/sources.list
Active apt repos in: /etc/apt/sources.list.d/google-earth-pro.list
1: deb [arch=amd64] http: //dl.google.com/linux/earth/deb/ stable main
Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
1: deb https: //mirror.karneval.cz/pub/linux/linuxmint/packages virginia main upstream import backport
2: deb http: //ftp.linux.cz/pub/linux/ubuntu jammy main restricted universe multiverse
3: deb http: //ftp.linux.cz/pub/linux/ubuntu jammy-updates main restricted universe multiverse
4: deb http: //ftp.linux.cz/pub/linux/ubuntu jammy-backports main restricted universe multiverse
5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
Active apt repos in: /etc/apt/sources.list.d/slimbook-slimbook-jammy.list
1: deb [arch=amd64 signed-by=/etc/apt/keyrings/slimbook-slimbook-jammy.gpg] https: //ppa.launchpadcontent.net/slimbook/slimbook/ubuntu jammy main
No active apt repos in: /etc/apt/sources.list.d/steam-beta.list
Active apt repos in: /etc/apt/sources.list.d/steam-stable.list
1: deb [arch=amd64,i386 signed-by=/usr/share/keyrings/steam.gpg] https: //repo.steampowered.com/steam/ stable steam
2: deb-src [arch=amd64,i386 signed-by=/usr/share/keyrings/steam.gpg] https: //repo.steampowered.com/steam/ stable steam
Active apt repos in: /etc/apt/sources.list.d/waydroid.list
1: deb [signed-by=/usr/share/keyrings/waydroid.gpg] https: //repo.waydro.id/ jammy main
Info:
Processes: 522 Uptime: 7h 8m wakeups: 1 Memory: 31.08 GiB used: 8.51 GiB (27.4%) Init: systemd
v: 249 runlevel: 5 Compilers: gcc: 11.4.0 alt: 11/12 Client: Cinnamon v: 6.0.4 inxi: 3.3.13
mikeflan
Level 17
Level 17
Posts: 7162
Joined: Sun Apr 26, 2020 9:28 am
Location: Houston, TX

Re: Drag and drop from Nemo to app doesn't work

Post by mikeflan »

I noticed that drag and drop from the file manager Nemo to any apps (Brave, Signal, etc), doesn't load the file into the destination app.
I find the exact opposite. Both text and html files are opened in both Firefox and xed by a simple drag and drop.

I am using LM 20.3. Other than the LM version difference, I don't know why it does not work for you.
User avatar
tonywhelan
Level 4
Level 4
Posts: 298
Joined: Sun Jun 10, 2012 10:47 pm
Location: Canberra, Australia

Re: Drag and drop from Nemo to app doesn't work

Post by tonywhelan »

I think it depends on what icons you are dropping onto.

If its a desktop icon, dropping the file onto it will open the file in the target application.

If however you are using the default Cinnamon panel (which uses the Grouped Window List), dropping files onto those panel icons will not open the application, at least not on my machine.

PS When I try it, I do not get a "unable to load the selected attachment" message that the OP mentioned.

PS tried LM21.2 & 21.3, same.
Linux Mint 21 Cinnamon household.
If your issue is solved, please edit your first post in the topic, adding [SOLVED] to the title.
Image
vttiste
Level 1
Level 1
Posts: 7
Joined: Sat Sep 17, 2022 12:31 pm

Re: Drag and drop from Nemo to app doesn't work

Post by vttiste »

Adding more details :
- cinnamon has all default settings (no specific configuration)
- when I drag and drop the apps (brave, signals) are already opened, so the error message is given by the app itself. I just drag and drop the file (for example a jpg) between nemo and the opened app
- I have all latest updates installed (via update manager)

it might be problem in the apps (brave, signal) themselves and not mint, ,but it is hard to find out where the problem comes from.
mikeflan
Level 17
Level 17
Posts: 7162
Joined: Sun Apr 26, 2020 9:28 am
Location: Houston, TX

Re: Drag and drop from Nemo to app doesn't work

Post by mikeflan »

it might be problem in the apps (brave, signal) themselves and not mint
I agree. I suggest we use the same applications to test. I suggest xed or Firefox.
but it is hard to find out where the problem comes from.
I agree. It just works for me.
User avatar
tonywhelan
Level 4
Level 4
Posts: 298
Joined: Sun Jun 10, 2012 10:47 pm
Location: Canberra, Australia

Re: Drag and drop from Nemo to app doesn't work

Post by tonywhelan »

when I drag and drop the apps (brave, signals) are already opened, so the error message is given by the app itself. I just drag and drop the file (for example a jpg) between nemo and the opened app
Oh, so the app is already open.
I can drag and drop a file onto xed and firefox in that manner successfully.
Linux Mint 21 Cinnamon household.
If your issue is solved, please edit your first post in the topic, adding [SOLVED] to the title.
Image
User avatar
PaulL
Level 6
Level 6
Posts: 1089
Joined: Mon Apr 24, 2023 10:57 am
Location: Connecticut

Re: Drag and drop from Nemo to app doesn't work

Post by PaulL »

I can drag a file onto the application's desktop icon, or if the app is open, I can drag it into the main window. The file will be opened in both cases. What I can't seem to make work is to drag onto the panel icon of an open app. Of course, trying to open a file the app isn't designed to handle will cause an error, such as when I try to open an MP4 file in xviewer.

So what, precisely, are you doing? And would it be possible to post a screen shot of the error message?
vttiste
Level 1
Level 1
Posts: 7
Joined: Sat Sep 17, 2022 12:31 pm

Re: Drag and drop from Nemo to app doesn't work

Post by vttiste »

Sorry for late reply, I didn't have my laptop for a couple of weeks.

It looks definitively access right related based on test I did today.

I drag document from "Download" directory and dropped it in google drive in Brave => it works
I drag same document from "Document" directory and dropped it in google drive in Brave => it doesn't work (message in google drive in brave '"file not found")

Strange thing is that "Download" and "Document" directories both belong to the same user with exact same access rules.
vttiste
Level 1
Level 1
Posts: 7
Joined: Sat Sep 17, 2022 12:31 pm

Re: Drag and drop from Nemo to app doesn't work

Post by vttiste »

It might be related to flatpak as I found a similar post like mine here => https://github.com/element-hq/element-web/issues/23945
I will test further and let you know
Post Reply

Return to “Cinnamon”