Bug 417269 - Items whose deletions were invoked in Images directory, are still visible there
Summary: Items whose deletions were invoked in Images directory, are still visible there
Status: RESOLVED DUPLICATE of bug 392456
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 19.12.1
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-07 14:10 UTC by Ricky Tigg
Modified: 2020-02-11 21:39 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Attempting to delete an item present in wastebin and still listed in its original directory (38.95 KB, image/png)
2020-02-08 12:50 UTC, Ricky Tigg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ricky Tigg 2020-02-07 14:10:57 UTC
SUMMARY 
Items whose deletions were invoked in Images directory, are still visible there.

STEPS TO REPRODUCE
1. In Images directory, right-click an existent item, then invoke Delete;
2. Right-click that same item, then invoke Delete;
3. Empty the waste-bin;
4. Go back to Images directory;
5. Close and reopen Dolphin.

OBSERVED RESULT in terminal

$ gdb -q dolphin
Reading symbols from dolphin...
Reading symbols from /usr/lib/debug/usr/bin/dolphin-19.12.1-1.fc31.x86_64.debug...

(gdb) run
Starting program: /usr/bin/dolphin 
warning: Loadable section ".note.gnu.property" outside of ELF segments
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffe4195700 (LWP 25291)]
[New Thread 0x7fffe3596700 (LWP 25292)]
[New Thread 0x7fffe0a9b700 (LWP 25293)]
[New Thread 0x7fffd37b6700 (LWP 25294)]

# step 1

org.kde.kcoreaddons: Error loading plugin "akregatorplugin" "The shared library was not found." 
Plugin search paths are ("/usr/lib64/qt5/plugins", "/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
[Detaching after fork from child process 25316]
[Detaching after fork from child process 25321]
Cannot initialize model with data QJsonObject() . missing: QJsonValue(string, "urls")
[Detaching after fork from child process 25322]
[Detaching after fork from child process 25327]
[Detaching after fork from child process 25328]
[Detaching after fork from child process 25333]

# step 2

org.kde.kcoreaddons: Error loading plugin "akregatorplugin" "The shared library was not found." 
Plugin search paths are ("/usr/lib64/qt5/plugins", "/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
[Detaching after fork from child process 25316]
[Detaching after fork from child process 25321]
Cannot initialize model with data QJsonObject() . missing: QJsonValue(string, "urls")
[Detaching after fork from child process 25322]
[Detaching after fork from child process 25327]
[Detaching after fork from child process 25328]
[Detaching after fork from child process 25333]

# step 3

warning: Loadable section ".note.gnu.property" outside of ELF segments
[New Thread 0x7fffd2bea700 (LWP 25400)]

in Dolphin

# step 4
Item whose deletion was invoked, is still listed.

# step 5
Item whose deletion was invoked is no more listed.

SOFTWARE/OS VERSIONS
Dolphin version: 19.12.1
Operating System: Fedora 31; KDE Plasma Version: 5.17.5; KDE Frameworks Version: 5.66.0; Qt Version: 5.13.2; Kernel Version: 5.4.15-200.fc31.x86_64
Comment 1 Nate Graham 2020-02-07 14:41:35 UTC
> 1. In Images directory, right-click an existent item, then invoke Delete;
> 2. Right-click that same item, then invoke Delete;
How are you invoking Delete in #1?

Also, #2 implies that #1 does not result in the item getting deleted. Can you clarify?
Comment 2 Ricky Tigg 2020-02-07 18:20:29 UTC
By invoking Delete, I did refer to the shortcut 'Del' associated with the 'Move to Wastebin' option in Dolphin. So to invoke that option, depending on the keyboard, either key 'Delete' or 'Del' has to be pressed.

Issue is indeed that, items that option are applied to, are not getting no longer listed from the directory they reside, despite they were at the same time moved to wastebin, thus that option can be invoked an infinite number of times, as long as Dolphin's window is kept opened.
Comment 3 Ricky Tigg 2020-02-07 18:31:11 UTC
Wrong output pasted as result at step 2; correction:

# step 2

org.kde.kcoreaddons: Error loading plugin "akregatorplugin" "The shared library was not found." 
Plugin search paths are ("/usr/lib64/qt5/plugins", "/usr/bin") 
The environment variable QT_PLUGIN_PATH might be not correctly set
[Detaching after fork from child process 25371]
[Detaching after fork from child process 25376]
Cannot initialize model with data QJsonObject() . missing: QJsonValue(string, "urls")
[Detaching after fork from child process 25377]
[Detaching after fork from child process 25382]
[Detaching after fork from child process 25383]
[Detaching after fork from child process 25388]
"The file or folder /home/yk/Kuvat/0.png does not exist."
Comment 4 Nate Graham 2020-02-07 19:03:57 UTC
So you select an icon and press the Delete key on your keyboard and nothing happens?
Comment 5 Ricky Tigg 2020-02-08 12:50:50 UTC
Created attachment 125766 [details]
Attempting to delete an item present in wastebin and still listed in its original directory

Something does happen always: item is moved to wastebin.
The only thing that does happen in this condition; item removed from list of items the directory contains.

Renewing step 2 gets always that typical message present in gdb, here in graphical interface; see dolphin_19.12.1_moved-to-wastebin.png

Introduction of a new condition: while the moved to wastebin items are still listed in their original directory, saving a new file in that same directory, will update the listed items accordingly, thus by removing from that list, items currently in wastebin.
Comment 6 Nate Graham 2020-02-11 21:39:57 UTC
Oh! this is while you're in the search view. That was the missing piece of information that I needed. :)

*** This bug has been marked as a duplicate of bug 392456 ***