--- kdesktop/kdiconview.cpp~	2026-06-13 17:39:14.199896930 +0200
+++ kdesktop/kdiconview.cpp	2026-06-13 16:41:31.703160909 +0200
@@ -2143,7 +2143,7 @@
 
     m_dotDirectory->setGroup( prefix + item->url().fileName() );
     kdDebug(1214) << "KDIconView::saveIconPositions " << item->url().fileName() << " " << it->x() << " " << it->y() << endl;
-    saveIconPosition(m_dotDirectory, it->x(), it->y());
+    if (item->isFile() || item->isDir()) saveIconPosition(m_dotDirectory, it->x(), it->y());
 
     it = it->nextItem();
   }
