<?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>510500</bug_id>
          
          <creation_ts>2025-10-11 18:32:35 +0000</creation_ts>
          <short_desc>Dolphin does not delete temp files</short_desc>
          <delta_ts>2026-02-21 10:21:00 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>dolphin</product>
          <component>general</component>
          <version>25.08.2</version>
          <rep_platform>Other</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>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Vadym Krevs">vkrevs</reporter>
          <assigned_to name="Dolphin Bug Assignee">dolphin-bugs-null</assigned_to>
          <cc>bugs.kde.org-97810000</cc>
    
    <cc>dandyoctavian</cc>
    
    <cc>dolphin-bugs-null</cc>
    
    <cc>kdedev</cc>
    
    <cc>kitts.mailinglists</cc>
    
    <cc>meven</cc>
    
    <cc>vkrevs</cc>
          
          <cf_commitlink>https://invent.kde.org/system/dolphin/-/commit/6566c021d01b82299b78ea8beba3c39896cb6c7b</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2461270</commentid>
    <comment_count>0</comment_count>
    <who name="Vadym Krevs">vkrevs</who>
    <bug_when>2025-10-11 18:32:35 +0000</bug_when>
    <thetext>SUMMARY
/tmp is full of dolphin.NNNNN temporary files.


STEPS TO REPRODUCE
1.  ls -alF -tr /tmp/dolphin.* | wc -l
2. Rename N files in Dolphin
3.   ls -alF -tr /tmp/dolphin.* | wc -l

OBSERVED RESULT
The number printed in step 3 is the number printed in step 1 plus N
EXPECTED RESULT
The number printed in step 3 is the same number as printed in step 1

SOFTWARE/OS VERSIONS
Operating System: openSUSE Leap 15.6
KDE Plasma Version: 6.4.91
KDE Frameworks Version: 6.18.0
Qt Version: 6.10.0
Graphics Platform: X11</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2462222</commentid>
    <comment_count>1</comment_count>
    <who name="Méven">meven</who>
    <bug_when>2025-10-15 15:44:10 +0000</bug_when>
    <thetext>ViewProperties have to use tmp to save view metadata due to a limitation in Kconfig.

Those files are supposed to be cleaned after use, apparently not correctly.

A KConfig path is underway to allow to lift this limitation and coincidentally fix this.

This still can be fixed in dolphin.

This has been discussed in
https://discuss.kde.org/t/dolphin-is-spamming-tmp/40585/6</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2462226</commentid>
    <comment_count>2</comment_count>
    <who name="Méven">meven</who>
    <bug_when>2025-10-15 16:03:07 +0000</bug_when>
    <thetext>It does not seem renaming files is the explanation.

Or it depends on the method used to rename files.

I don&apos;t reproduce this easily.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2462266</commentid>
    <comment_count>3</comment_count>
    <who name="Vadym Krevs">vkrevs</who>
    <bug_when>2025-10-15 18:37:02 +0000</bug_when>
    <thetext>Well, turns out all one needs to do is simply open dolphin in /tmp directory. I&apos;ve done a quick screen recording reproducing the issue. No renames involved.  

https://www.youtube.com/watch?v=spMbL6VSOBU

P.S.: I cannot believe someone seriously suggested rebooting as a solution to this issue in that linked discuss.kde.org thread ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2462378</commentid>
    <comment_count>4</comment_count>
    <who name="Méven">meven</who>
    <bug_when>2025-10-16 07:28:15 +0000</bug_when>
    <thetext>Is Opensuse using LTO for compilation ?

I know Fedora does, and this creates bugs due to LTO changing valid code to whatever sometimes.

&gt; https://www.youtube.com/watch?v=spMbL6VSOBU

I don&apos;t reproduce simply opening /tmp in Arch.

You asked in the video why dolphin used files in /tmp, you could read my answer: https://bugs.kde.org/show_bug.cgi?id=510500#c1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2462494</commentid>
    <comment_count>5</comment_count>
    <who name="Vadym Krevs">vkrevs</who>
    <bug_when>2025-10-16 18:45:37 +0000</bug_when>
    <thetext>(In reply to Méven from comment #4)
&gt; Is Opensuse using LTO for compilation ?
&gt; 
&gt; I know Fedora does, and this creates bugs due to LTO changing valid code to
&gt; whatever sometimes.
&gt; 
&gt; &gt; https://www.youtube.com/watch?v=spMbL6VSOBU
&gt; 
&gt; I don&apos;t reproduce simply opening /tmp in Arch.
&gt; 
&gt; You asked in the video why dolphin used files in /tmp, you could read my
&gt; answer: https://bugs.kde.org/show_bug.cgi?id=510500#c1

I recall reading somewhere that openSUSE Tumbleween does use LTO by default, but cannot find anything definitive regarding Leap which is what I am using.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2464485</commentid>
    <comment_count>6</comment_count>
    <who name="Vadym Krevs">vkrevs</who>
    <bug_when>2025-10-24 08:13:49 +0000</bug_when>
    <thetext>Still not fixed in Plasma 6.5. I&apos;ve deleted all these dolphin.* files manually and now when I open /tmp in Dolphin it is next to impossible to select any file with a mouse (to right click on it or delete, etc) whose name alphabetically follows dolphin.* - because the constant creation and deletion of dolphin.*** files in /tmp while /tmp is open in Dolphin makes all the file/directory icons shift randomly on the screen very rapidly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2465108</commentid>
    <comment_count>7</comment_count>
    <who name="">bugs.kde.org-97810000</who>
    <bug_when>2025-10-25 21:05:08 +0000</bug_when>
    <thetext>This is reliably reproducable for me in Arch while using the current flatpak of dolphin.
Flatpak version: org.kde.dolphin 25.08.2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2465476</commentid>
    <comment_count>8</comment_count>
    <who name="Méven">meven</who>
    <bug_when>2025-10-27 11:07:19 +0000</bug_when>
    <thetext>(In reply to Vadym Krevs from comment #6)
&gt; Still not fixed in Plasma 6.5. I&apos;ve deleted all these dolphin.* files
&gt; manually and now when I open /tmp in Dolphin it is next to impossible to
&gt; select any file with a mouse (to right click on it or delete, etc) whose
&gt; name alphabetically follows dolphin.* - because the constant creation and
&gt; deletion of dolphin.*** files in /tmp while /tmp is open in Dolphin makes
&gt; all the file/directory icons shift randomly on the screen very rapidly.

Are you also using dolphin through flatpak ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2465669</commentid>
    <comment_count>9</comment_count>
    <who name="Vadym Krevs">vkrevs</who>
    <bug_when>2025-10-27 18:52:02 +0000</bug_when>
    <thetext>No</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2470840</commentid>
    <comment_count>10</comment_count>
    <who name="dendy oc">dandyoctavian</who>
    <bug_when>2025-11-17 09:35:16 +0000</bug_when>
    <thetext>I have same issue on Artix Linux 

video:
https://github.com/user-attachments/assets/4be4656a-2c3c-46f2-bf6b-eaea32d46a0e

Operating System: Artix Linux 
KDE Plasma Version: 6.5.2
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0
Kernel Version: 6.17.7-artix1-1 (64-bit)
Graphics Platform: Wayland</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2473072</commentid>
    <comment_count>11</comment_count>
    <who name="Kishore">kitts.mailinglists</who>
    <bug_when>2025-11-27 06:41:46 +0000</bug_when>
    <thetext>I have the same issue with KDE neon user edition.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2474370</commentid>
    <comment_count>12</comment_count>
    <who name="TraceyC">kdedev</who>
    <bug_when>2025-12-04 00:30:32 +0000</bug_when>
    <thetext>Thanks for the bug report. Based on the symptoms, this looks like the same thing as bug 508402, which has a fix in progress

*** This bug has been marked as a duplicate of bug 508402 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2484013</commentid>
    <comment_count>13</comment_count>
    <who name="Méven">meven</who>
    <bug_when>2026-01-12 12:57:43 +0000</bug_when>
    <thetext>Git commit b9b06174afca99d7fe544940b950a7323631271a by Méven Car, on behalf of Sergey Katunin.
Committed on 12/01/2026 at 12:57.
Pushed by meven into branch &apos;master&apos;.

viewproperties: remove temp file after loading defaultConfig

It turns out that since f6c97d52220be9bd996b71309051e56ff7aa1834 a temp file is created here with each `save()` call for this default config, which is not deleted later. In another place where `defaultProperties()` is called for `m_node`, the file is deleted in the destructor of this class. But it is not deleted here.

So, remove temp file after loading defaultConfig or it will create temp file on each save() operation in /tmp folder.

Also keep the global/.directory file when xattr isn&apos;t supported.

M  +54   -0    src/tests/viewpropertiestest.cpp
M  +11   -0    src/views/viewproperties.cpp

https://invent.kde.org/system/dolphin/-/commit/b9b06174afca99d7fe544940b950a7323631271a</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2484350</commentid>
    <comment_count>14</comment_count>
    <who name="Méven">meven</who>
    <bug_when>2026-01-13 12:01:01 +0000</bug_when>
    <thetext>Git commit 6566c021d01b82299b78ea8beba3c39896cb6c7b by Méven Car, on behalf of Sergey Katunin.
Committed on 13/01/2026 at 12:00.
Pushed by meven into branch &apos;release/25.12&apos;.

viewproperties: remove temp file after loading defaultConfig

It turns out that since f6c97d52220be9bd996b71309051e56ff7aa1834 a temp file is created here with each `save()` call for this default config, which is not deleted later. In another place where `defaultProperties()` is called for `m_node`, the file is deleted in the destructor of this class. But it is not deleted here.

So, remove temp file after loading defaultConfig or it will create temp file on each save() operation in /tmp folder.

Also keep the global/.directory file when xattr isn&apos;t supported.


(cherry picked from commit b9b06174afca99d7fe544940b950a7323631271a)


----- 

https://invent.kde.org/system/dolphin/-/merge_requests/1133

M  +54   -0    src/tests/viewpropertiestest.cpp
M  +11   -0    src/views/viewproperties.cpp

https://invent.kde.org/system/dolphin/-/commit/6566c021d01b82299b78ea8beba3c39896cb6c7b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2496975</commentid>
    <comment_count>15</comment_count>
    <who name="Méven">meven</who>
    <bug_when>2026-02-21 08:57:51 +0000</bug_when>
    <thetext>And with https://invent.kde.org/system/dolphin/-/merge_requests/1118 they are no temporary files created at all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2496993</commentid>
    <comment_count>16</comment_count>
    <who name="Vadym Krevs">vkrevs</who>
    <bug_when>2026-02-21 10:21:00 +0000</bug_when>
    <thetext>(In reply to Méven from comment #15)
&gt; And with https://invent.kde.org/system/dolphin/-/merge_requests/1118 they
&gt; are no temporary files created at all.

Thank you so much! I can confirm the issue is no longer present on openSUSE Leap 15.6 with:

KDE Plasma Version: 6.6.0
KDE Frameworks Version: 6.23.0
Qt Version: 6.10.2
Dolphin: 25.12.2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>