Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-3023

Drag-and-Drop not working for SMB shares on Arch Linux with KDE Plasma

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Normal Normal
    • None
    • 2.12.3
    • Data Submission
    • None
    • Arch Linux with KDE Plasma

      Description:

      Dragging and dropping files from mounted SMB shares does not work in MusicBrainz Picard when running on Arch Linux with KDE Plasma. Files can be added through the "Add Files" menu, but drag-and-drop remains unresponsive. This issue only occurs with SMB shares.  locally stored files work without any issues.

      Steps to Reproduce:

      Start Picard on Arch Linux with KDE Plasma.
      Mount an SMB share (e.g., at /mnt/smbshare):
      Drag a file or folder from the mounted share into Picard.

      Expected Behavior:

      The file should be loaded into Picard and ready for tagging.

      Actual Behavior:

      The file is not added. The following message appears in the debug log:
      MainWindow(0x5a3e1c568ec0) : No drag target set.

      System Information:

      Operating System: Arch Linux
      Desktop Environment: KDE Plasma
      Picard Version: 2.12.3
      Installation Method: Pacman

      Additional Information:

      This issue is specific to KDE Plasma on Arch Linux. Tested on Linux Mint (Cinnamon) and Fedora (GNOME): Drag-and-drop works without issues.

      xdg-desktop-portal and xdg-desktop-portal-kde are installed and up-to-date. SMB shares were tested with both mount -t cifs and gio mount.

          [PICARD-3023] Drag-and-Drop not working for SMB shares on Arch Linux with KDE Plasma

          Thanks a lot for the follow up and the details. Glad to hear it is working for you. I close this issue as it seems there is nothing to do on the Picard side.

          Philipp Wolfer added a comment - Thanks a lot for the follow up and the details. Glad to hear it is working for you. I close this issue as it seems there is nothing to do on the Picard side.

          Mp added a comment -

          Hello Phillip,

          I wanted to provide an update regarding the Drag-and-Drop issue I reported earlier.

          After further testing and ensuring my system is fully updated, the problem seems to have resolved itself. Drag-and-Drop is now working as expected with SMB shares on my main system. Unfortunately, I could not pinpoint the exact cause or solution, as I made no significant changes apart from keeping the system updated.

          Thank you for your attention and support. I appreciate the work you do to maintain Picard!

          Best regards,

          Michael

          Mp added a comment - Hello Phillip, I wanted to provide an update regarding the Drag-and-Drop issue I reported earlier. After further testing and ensuring my system is fully updated, the problem seems to have resolved itself. Drag-and-Drop is now working as expected with SMB shares on my main system. Unfortunately, I could not pinpoint the exact cause or solution, as I made no significant changes apart from keeping the system updated. Thank you for your attention and support. I appreciate the work you do to maintain Picard! Best regards, Michael

          Mp added a comment -

          Hello Phillip,

          I wanted to follow up on the issue I reported earlier. I tested MusicBrainz Picard with the same SMB mounting script on another Arch Linux system with KDE Plasma, and Drag-and-Drop works perfectly there. This indicates that the problem is specific to my main system and not a general issue with Picard or Arch/KDE.

          I apologize for the confusion caused by my initial report. I'll investigate further on my system to identify what might be causing the issue and let you know if I find something relevant.

          Thank you for your time and support!

          Mp added a comment - Hello Phillip, I wanted to follow up on the issue I reported earlier. I tested MusicBrainz Picard with the same SMB mounting script on another Arch Linux system with KDE Plasma, and Drag-and-Drop works perfectly there. This indicates that the problem is specific to my main system and not a general issue with Picard or Arch/KDE. I apologize for the confusion caused by my initial report. I'll investigate further on my system to identify what might be causing the issue and let you know if I find something relevant. Thank you for your time and support!

          Thanks a lot for the details. My suspicion was that the method of mounting with cifs directly or via GIO might make a difference.

          I'll attempt to reproduce this and investigate.

          Philipp Wolfer added a comment - Thanks a lot for the details. My suspicion was that the method of mounting with cifs directly or via GIO might make a difference. I'll attempt to reproduce this and investigate.

          Mp added a comment -

          The SMB shares were mounted using two different methods for testing:

          1. Using mount with cifs:
          sudo mount -t cifs //SERVER/SHARE /mnt/smbshare -o username=YOURUSERNAME,password=YOURPASSWORD,vers=3.0,iocharset=utf8

          2. Using gio mount:
          gio mount smb://SERVER/SHARE

          In both cases, the shares were accessible through the respective mount points (/mnt/smbshare for mount and /run/user/$UID/gvfs/ for gio).

          The issue occurs with both methods of mounting, and files can be added through the "Add Files" menu but not via drag-and-drop.

          For the mount method, I used a script for convenience:

          #!/bin/bash

          MOUNT_POINT="/mnt/smbshare"
          SMB_PATH="//SERVER/SHARE"
          USERNAME="YOURUSERNAME"
          PASSWORD="YOURPASSWORD"

          if mount | grep -q "$MOUNT_POINT"; then
              sudo umount "$MOUNT_POINT"
          else
              sudo mount -t cifs "$SMB_PATH" "$MOUNT_POINT" -o username="$USERNAME",password="$PASSWORD",vers=3.0,iocharset=utf8
          fi

          Mp added a comment - The SMB shares were mounted using two different methods for testing: 1. Using mount with cifs: sudo mount -t cifs //SERVER/SHARE /mnt/smbshare -o username=YOURUSERNAME,password=YOURPASSWORD,vers=3.0,iocharset=utf8 2. Using gio mount: gio mount smb://SERVER/SHARE In both cases, the shares were accessible through the respective mount points (/mnt/smbshare for mount and /run/user/$UID/gvfs/ for gio). The issue occurs with both methods of mounting, and files can be added through the "Add Files" menu but not via drag-and-drop. For the mount method, I used a script for convenience: #!/bin/bash MOUNT_POINT="/mnt/smbshare" SMB_PATH="//SERVER/SHARE" USERNAME="YOURUSERNAME" PASSWORD="YOURPASSWORD" if mount | grep -q "$MOUNT_POINT"; then     sudo umount "$MOUNT_POINT" else     sudo mount -t cifs "$SMB_PATH" "$MOUNT_POINT" -o username="$USERNAME",password="$PASSWORD",vers=3.0,iocharset=utf8 fi

          How exactly were the SMB shares mounted?

          Philipp Wolfer added a comment - How exactly were the SMB shares mounted?

            Unassigned Unassigned
            metamiche Mp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package