<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>508185</bug_id>
          
          <creation_ts>2025-08-13 03:29:59 +0000</creation_ts>
          <short_desc>Plasma crashes when dragging .desktop file from ~/.local/applications/ to desktop</short_desc>
          <delta_ts>2025-08-26 14:40:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>Desktop icons &amp; Folder View widget</component>
          <version>6.4.80</version>
          <rep_platform>KDE Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>HI</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nate Graham">nate</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>akselmo</cc>
    
    <cc>hein</cc>
    
    <cc>kde</cc>
          
          <cf_commitlink>https://invent.kde.org/frameworks/kio/-/commit/a8d2aaa1a8a9de8890c95b721a69b15886b50cd4</cf_commitlink>
          <cf_versionfixedin>6.18</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2446962</commentid>
    <comment_count>0</comment_count>
      <attachid>184023</attachid>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-08-13 03:29:59 +0000</bug_when>
    <thetext>Created attachment 184023
.desktop file

STEPS TO REPRODUCE
1. Put the attached .desktop file in ~/.local/share/applications/
2. Run `kbuildsycoca6`
3. Drag the .desktop file to the actual desktop


OBSERVED RESULT
Plasma crashes. 100% reproducible for me. Backtrace:

Thread 1 (Thread 0x7f9fa390aa80 (LWP 1805)):
[KCrash Handler]
#4  std::__uniq_ptr_impl&lt;KMountPointPrivate, std::default_delete&lt;KMountPointPrivate&gt; &gt;::_M_ptr (this=0x8) at /usr/include/c++/15.1.1/bits/unique_ptr.h:193
#5  std::unique_ptr&lt;KMountPointPrivate, std::default_delete&lt;KMountPointPrivate&gt; &gt;::get (this=0x8) at /usr/include/c++/15.1.1/bits/unique_ptr.h:473
#6  std::unique_ptr&lt;KMountPointPrivate, std::default_delete&lt;KMountPointPrivate&gt; &gt;::operator-&gt; (this=0x8) at /usr/include/c++/15.1.1/bits/unique_ptr.h:466
#7  KMountPoint::mountedFrom (this=0x0) at /usr/src/debug/kde-banana-kio-git/kio/src/core/kmountpoint.cpp:400
#8  0x00007f9fa8beb41a in KIO::DropJobPrivate::handleCopyToDirectory (this=0x5650e0433c80) at /usr/include/qt6/QtCore/qcomparehelpers.h:1100
#9  0x00007f9fa95bbe34 in QObject::event (this=&lt;optimized out&gt;, e=&lt;optimized out&gt;) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:1431
#10 0x00007f9fab5ebc70 in QApplicationPrivate::notify_helper (this=&lt;optimized out&gt;, receiver=0x5650dc50f5f0, e=0x5650dfdf87f0) at /usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3303
#11 0x00007f9fa9563118 in QCoreApplication::notifyInternal2 (receiver=0x5650dc50f5f0, event=event@entry=0x5650dfdf87f0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1106
#12 0x00007f9fa95634fb in QCoreApplication::sendEvent (receiver=&lt;optimized out&gt;, event=0x5650dfdf87f0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1546
#13 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x5650d9f070f0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1879
#14 0x00007f9fa983acf8 in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1733
#15 postEventSourceDispatch (s=0x5650d9f15950) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:246
#16 0x00007f9fa81b987d in g_main_dispatch (context=0x7f9f9c000f70) at ../glib/glib/gmain.c:3398
#17 0x00007f9fa81bacd7 in g_main_context_dispatch_unlocked (context=0x7f9f9c000f70) at ../glib/glib/gmain.c:4249
#18 g_main_context_iterate_unlocked (context=context@entry=0x7f9f9c000f70, block=block@entry=1, dispatch=dispatch@entry=1, self=&lt;optimized out&gt;) at ../glib/glib/gmain.c:4314
#19 0x00007f9fa81baee5 in g_main_context_iteration (context=0x7f9f9c000f70, may_block=1) at ../glib/glib/gmain.c:4379
#20 0x00007f9fa98375e2 in QEventDispatcherGlib::processEvents (this=0x5650d9f163d0, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#21 0x00007f9fa956f4b6 in QEventLoop::processEvents (this=0x7ffddd2ac480, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:104
#22 QEventLoop::exec (this=0x7ffddd2ac480, flags=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:186
#23 0x00007f9fa95677c1 in QCoreApplication::exec () at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1449
#24 0x000056509fb272c1 in main (argc=&lt;optimized out&gt;, argv=&lt;optimized out&gt;) at /usr/src/debug/kde-banana-plasma-workspace-git/plasma-workspace/shell/main.cpp:188


EXPECTED RESULT
No crash!


ADDITIONAL INFORMATION
If I drag it to the desktop in another way (the Desktop places panel item, or the ~/Desktop folder in Dolphin), there&apos;s no crash.


SOFTWARE/OS VERSIONS
Operating System: KDE Linux 2025-08-12
KDE Plasma Version: 6.4.80
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.1
Kernel Version: 6.15.9-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840U w/ Radeon™ 780M Graphics
Memory: 16 GiB of RAM (14.9 GiB usable)
Graphics Processor: AMD Radeon 780M Graphics</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2447597</commentid>
    <comment_count>1</comment_count>
    <who name="Akseli Lahtinen">akselmo</who>
    <bug_when>2025-08-15 11:19:05 +0000</bug_when>
    <thetext>I can&apos;t get this crash to happen. Do you copy, link or move it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2447598</commentid>
    <comment_count>2</comment_count>
    <who name="Akseli Lahtinen">akselmo</who>
    <bug_when>2025-08-15 11:20:10 +0000</bug_when>
    <thetext>(In reply to Akseli Lahtinen from comment #1)
&gt; I can&apos;t get this crash to happen. Do you copy, link or move it?

I tried all three but no crash.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2447627</commentid>
    <comment_count>3</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-08-15 13:44:36 +0000</bug_when>
    <thetext>For me it crashes before the menu is even shown.

David E tracked it down, and it&apos;s fixed/worked around with https://invent.kde.org/frameworks/kio/-/merge_requests/1975.

The fact that it&apos;s mount-related may reveal that this is a problem specific to KDE Linux. This OS has some non-traditional mounts for its filesystem layout.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2450390</commentid>
    <comment_count>4</comment_count>
    <who name="David Edmundson">kde</who>
    <bug_when>2025-08-26 10:57:07 +0000</bug_when>
    <thetext>Git commit a8d2aaa1a8a9de8890c95b721a69b15886b50cd4 by David Edmundson.
Committed on 26/08/2025 at 10:57.
Pushed by davidedmundson into branch &apos;master&apos;.

guard mount point lookup

Looking up a mount point for a path can fail. We should take care.

A check later that sourceDevice is valid is also adjusted as comparing two empty mount points should not be treated as the same device.

M  +15   -3    src/widgets/dropjob.cpp

https://invent.kde.org/frameworks/kio/-/commit/a8d2aaa1a8a9de8890c95b721a69b15886b50cd4</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>184023</attachid>
            <date>2025-08-13 03:29:59 +0000</date>
            <delta_ts>2025-08-13 03:29:59 +0000</delta_ts>
            <desc>.desktop file</desc>
            <filename>endless-sky.desktop</filename>
            <type>application/x-desktop</type>
            <size>709</size>
            <attacher name="Nate Graham">nate</attacher>
            
              <data encoding="base64">W0Rlc2t0b3AgRW50cnldCkNhdGVnb3JpZXM9R2FtZTtTaW11bGF0aW9uOwpDb21tZW50W2VuX1VT
XT1TcGFjZSBleHBsb3JhdGlvbiBhbmQgY29tYmF0IGdhbWUKQ29tbWVudD1TcGFjZSBleHBsb3Jh
dGlvbiBhbmQgY29tYmF0IGdhbWUKQ29tbWVudFtkZV09V2VsdHJhdW1oYW5kZWxzIHVuZCBLYW1w
ZnNpbXVsYXRvcgpDb21tZW50W2ZyXT1KZXUgZCdleHBsb3JhdGlvbiBldCBkZSBjb21iYXQgZGFu
cyBsJ2VzcGFjZQpFeGVjPS9ob21lL25hdGUvRG9jdW1lbnRzL1NvZnR3YXJlL2dpdC1yZXBvcy8z
cmRQYXJ0eS9lbmRsZXNzLXNreS9lbmRsZXNzLXNreQpHZW5lcmljTmFtZVtlbl9VU109U3BhY2Ug
R2FtZQpHZW5lcmljTmFtZT1TcGFjZSBHYW1lCkljb249L2hvbWUvbmF0ZS9Eb2N1bWVudHMvU29m
dHdhcmUvZ2l0LXJlcG9zLzNyZFBhcnR5L2VuZGxlc3Mtc2t5L2ljb25zL2ljb25fMjU2eDI1Ni5w
bmcKS2V5d29yZHM9Z2FtZTtzaW11bGF0b3I7c3BhY2U7c2FuZGJveDtycGc7Ck1pbWVUeXBlPQpO
YW1lW2VuX1VTXT1FbmRsZXNzIFNreQpOYW1lPUVuZGxlc3MgU2t5ClBhdGg9ClN0YXJ0dXBOb3Rp
Znk9dHJ1ZQpUZXJtaW5hbD1mYWxzZQpUZXJtaW5hbE9wdGlvbnM9ClR5cGU9QXBwbGljYXRpb24K
WC1EQlVTLVNlcnZpY2VOYW1lPQpYLURCVVMtU3RhcnR1cFR5cGU9ClgtS0RFLVN1YnN0aXR1dGVV
SUQ9ZmFsc2UKWC1LREUtVXNlcm5hbWU9Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>