Author Topic: Emelfm2 Trash  (Read 2471 times)

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Emelfm2 Trash
« on: January 22, 2007, 01:26:14 am »
Just a moment ago I was using emelfm2 to delete stuff from my SD card which is the space for building things. There was an unwanted dir with around 200MB. So I simply dragged the whole thing to the trash box icon.  
And then ... BOOOOOMB! I noticed something unusual in the resource monitor in the desktop panel, so in a few seconds I went to the shell to kill emelfm2.
The funny thing is: I didn't know where the huge trashed dump went!
All I saw right after that was the internal space got almost filled up, with only around 1MB left. I suspected the dump directly went to the internal flash. After using the find -size ... command in vain and rebooting, I still failed to trace the dump or solve the problem.
 
Quite surprisingly, there seems to be no manual for emelfm2 GUI online!

Opening up the source of emelfm2 I saw a doc/usage. And it says,
Code: [Select]
TRASH

When e2 puts something into trash, it will first try to use a folder named '.Trash' in the directory the item(s) come from i.e. the one shown in the active pane. If such a folder doesn't exist, fallback choices are: '.Trash' in the user's home directory, then finally, '.emelfm2/Trash' in the user's  home directory. The last of these will be created if it didn't exist already.

There is no over-write checking for trashed items. Any item with the same name, already in the trash, will simply be erased.

However there was simply no .emelfm2/Trash or .Trash created anywhere in the system.

Desperately, I searched the web again and saw the emelfm2 man page (http://www.die.net/doc/linux/man/man1/emelfm2.1.html) at last. Under the "command line options" it says,
Code: [Select]
-t,--trash= DIR
    Set the trash directory to DIR (default: ~/.local/share/Trash/files).

That's the correct path. The partial chunk was really there. Removing it freed up the internal space again. Then I removed emelfm2 to help stay away from further troubles.

The trash thing may not be considered to be a bug of the program, but using it for devices with little internal space perhaps a bit caution is needed.

Or am i the only delusional one?  
« Last Edit: January 22, 2007, 01:38:57 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Emelfm2 Trash
« Reply #1 on: January 22, 2007, 01:40:06 am »
Quote
Just a moment ago I was using emelfm2 to delete stuff from my SD card which is the space for building things. There was an unwanted dir with around 200MB. So I simply dragged the whole thing to the trash box icon. 
And then ... BOOOOOMB! I noticed something unusual in the resource monitor in the desktop panel, so in a few seconds I went to the shell to kill emelfm2.
The funny thing is: I didn't know where the huge trashed dump went!
All I saw right after that was the internal space got almost filled up, with only around 1MB left. I suspected the dump directly went to the internal flash. After using the find -size ... command in vain and rebooting, I still failed to trace the dump or solve the problem.
 
Quite surprisingly, there seems to be no manual for emelfm2 GUI online!

Opening up the source of emelfm2 I saw a doc/usage. And it says,
Code: [Select]
TRASH

When e2 puts something into trash, it will first try to use a folder named '.Trash' in the directory the item(s) come from i.e. the one shown in the active pane. If such a folder doesn't exist, fallback choices are: '.Trash' in the user's home directory, then finally, '.emelfm2/Trash' in the user's  home directory. The last of these will be created if it didn't exist already.

There is no over-write checking for trashed items. Any item with the same name, already in the trash, will simply be erased.

However there was simply no .emelfm2/Trash or .Trash created anywhere in the system.

Desperately, I searched the web again and saw the emelfm2 man page (http://www.die.net/doc/linux/man/man1/emelfm2.1.html) at last. Under the "command line options" it says,
Code: [Select]
-t,--trash= DIR
    Set the trash directory to DIR (default: ~/.local/share/Trash/files).

That's the correct path. The partial chunk was really there. Removing it freed up the internal space again. Then I removed emelfm2 to help stay away from further troubles.

The trash thing may not be considered to be a bug of the program, but using it for devices with little internal space perhaps a bit caution is needed.

Or am i the only delusional one?   
[div align=\"right\"][a href=\"index.php?act=findpost&pid=151989\"][{POST_SNAPBACK}][/a][/div]


Code: [Select]
--trash=/dev/nullwill fix it
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Emelfm2 Trash
« Reply #2 on: January 22, 2007, 01:47:40 am »
Quote
Code: [Select]
--trash=/dev/nullwill fix it
[div align=\"right\"][a href=\"index.php?act=findpost&pid=151991\"][{POST_SNAPBACK}][/a][/div]

Thanks. I have to admit that I was acting in panic and I don't even bother to look at the interface again. Despite the many buttons in the GUI panels, is it a bit tricky to specify the trash path with a command line option? Perhaps that option should be made much more obvious to the user. (or maybe it can actually be set somewhere in the menus,... well, I have switched back to Rox filer now)
And i'm afraid your trick is something we can do only if no real trouble happens, e.g. the internal space is already fully filled up by the trash files and the system crashes ...  
« Last Edit: January 22, 2007, 01:49:52 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Emelfm2 Trash
« Reply #3 on: January 22, 2007, 01:50:52 am »
Quote
Quote
Code: [Select]
--trash=/dev/nullwill fix it
[div align=\"right\"][a href=\"index.php?act=findpost&pid=151991\"][{POST_SNAPBACK}][/a][/div]

Thanks. I have to admit that I was acting in panic and I don't even bother to look at the interface again. Despite the many buttons in the GUI panels, is it a bit tricky to specify the trash path with a command line option? Perhaps that option should be made much more obvious to the user. (or maybe it can actually be set somewhere in the menus,... well, I have switched back to Rox filer now)
And i'm afraid your trick is something we can do only if no real trouble happens, e.g. the internal space is already fully filled up by the trash files and the system crashes ...  
[div align=\"right\"][a href=\"index.php?act=findpost&pid=151992\"][{POST_SNAPBACK}][/a][/div]

just add that option to the desktop file so each time you start emelfm2 it has that option.
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K