After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 325834 - tool tip has two times for items number in trash://
tool tip has two times for items number in trash://
Status: RESOLVED FIXED
Product: gnome-applets
Classification: Other
Component: trash applet
2.16.x
Other All
: Normal normal
: ---
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
: 354013 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-01-05 07:34 UTC by sangu
Modified: 2010-01-24 01:06 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
Running trashapplet with LANG=C (29.49 KB, image/png)
2006-09-10 17:41 UTC, Pavel Šefránek
Details

Description sangu 2006-01-05 07:34:34 UTC
Please describe the problem:
tool tip has two times for items number in trash:// 

Steps to reproduce:
1. remove one file on nautilus
2. tool tip display to "2 Items in Trash".
3. 


Actual results:


Expected results:


Does this happen every time?
always

Other information:
gnome-applets-2.13.1

LANG=ko_KR.UTF-8
Comment 1 Danielle Madeley 2006-01-06 01:18:35 UTC
How many items were in the trash previously? How many items does Nautilus think are in the trash.
Comment 2 sangu 2006-01-06 02:58:44 UTC
No file in trash://. tool tip displays no item .

Remove one file on nautilus

One file  in trash://. tool tip display 2 items in trash.

Remove one file on nautilus

two file in trash://. tool tip display 4 items in trash.
.
.
.

LANG=ko_KR.UTF-8

Comment 3 Danielle Madeley 2006-01-06 03:23:39 UTC
I've not noticed this. Does this also happen if you run trashapplet from the command line with LANG=C?

Something like:
$ killall trashapplet # dialog will say trashapplet crashed, ignore for the moment
$ LANG=C /usr/libexec/trashapplet

The applet factory will now run from the commandline. Choose to restart the applet from the dialog. Some distributions will place in the applet in a different path to above, for example /usr/lib/gnome-applets/ is quite popular, I believe.
Comment 4 sangu 2006-02-01 05:07:21 UTC
Sorry about late response.
Tis bug seems to be fedora specific. 

See Also : https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=178622
Comment 5 Alexandros Frantzis 2006-05-12 20:03:19 UTC
I see the same problem with Dropline Gnome 2.14 on Slackware 10.2.

I downloaded the source and added some debug messages in trash_monitor.c.
What I got was (with two files initially in the trash):

add_volume: Added volume /dev/hda5
add_volume: Added volume /dev/hda7
add_volume: Added volume /dev/hda8
add_volume: Added volume /dev/root
trash_changed_notify
count_items: Volume /dev/hda8 has 0 items
count_items: Volume /dev/hda7 has 0 items
count_items: Volume /dev/hda5 has 2 items
count_items: Volume /dev/root has 2 items
add_volume: Added volume /dev/hda7 <---- At this point I added one more file
trash_changed_notify
count_items: Volume /dev/hda8 has 0 items
count_items: Volume /dev/hda7 has 0 items
count_items: Volume /dev/hda5 has 3 items
count_items: Volume /dev/root has 3 items

There is a '/dev/root' which I don't know where it came from and it seems to be the same device as '/dev/hda5'(reiserfs) which is my primary linux partition.

This duplication is the source of the 2x items counted in the tooltip.
Any ideas how to fix this?

As a side note, why is '/dev/hda7'(reiserfs) added again each time I put a file in the trash?
Comment 6 Danielle Madeley 2006-09-06 02:50:27 UTC
*** Bug 354013 has been marked as a duplicate of this bug. ***
Comment 7 Pavel Šefránek 2006-09-10 17:40:47 UTC
I cannot aggree this bug is only fedora-related. I found it on Ubuntu Edgy Eft.
Anyway, I will attach requisitioned screenshot of trashapplet running with "C" locale. It looks the same.
Comment 8 Pavel Šefránek 2006-09-10 17:41:51 UTC
Created attachment 72510 [details]
Running trashapplet with LANG=C
Comment 9 Sebastien Bacher 2006-09-17 09:54:35 UTC
Ubuntu bug about that: https://launchpad.net/distros/ubuntu/+source/gnome-applets/+bug/59781
Comment 10 Pavel Šefránek 2006-09-17 11:55:44 UTC
I think the bug first appeared in GNOME >=2.15.x.
Now I'm running gnome-applets-2.14.3 and trash applet shows correct amount of deleted files.
Comment 11 Pavel Šefránek 2006-10-15 11:45:44 UTC
This bug has been fixed since 2.16.1. Feel free to close it.
Comment 12 Sebastien Bacher 2006-10-15 13:42:05 UTC
works fine on my Ubuntu edgy desktop too 
Comment 13 Saleem Abdulrasool 2007-05-05 19:08:02 UTC
Marking as fixed as per comments #11 and #12.