Bounty : : Trashcan for MorphOS Released
Posted By: jacadcaps. on 2016/12/30 8:35:43
TFSThe first release of TrashFileSystem is now available!

Features:

  • Can trash files and directories on any writable volume
  • Collects all trashed files/dirs into a virtual Trashcan volume
  • Files in Trashcan: are read-only. Directories can only be restored (no read access)
  • Has 2 virtual disk.infos for empty/full state - the only file that can be written
  • Supports removable volumes

Ambient integration:
  • Trashcan icon on desktop - can be emptied with the context menu, supports dropping files
  • Regular listers/icon views - files can be trashed with a hotkey or context menu
  • Lister/icon view inside Trashcan - files can be restored to their original location

Download: https://tunkki.dk/~jaca/trashcan.lha
 
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Joined: 2013/5/29
    Posts: 523
    From:
    Great! Thanks so much!Hope to try this night.
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »2016/12/30 9:57
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Joined: 2010/2/10
    Posts: 613
    From: FRANCE
    thanks !
    i just install it.
    i dont show a trashcan on desktop but i see context menu.
  • »2016/12/30 11:02
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Cool_amigaN
    Joined: 2011/11/30
    Posts: 765
    From:
    I have already a .trashcan directory with a shortcut to Ambient Desktop. Is it ok to install it? Is there a max size of the trashcan virtual volume it creates?
    Amiga gaming Tribute: Watch, rate, comment :)
  • »2016/12/30 12:44
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Joined: 2003/3/5
    Posts: 3119
    From: Canada
    Quote:


    i dont show a trashcan on desktop but i see context menu.


    Sounds like you need to drag the Trashcan icon from MyMorphOS to the desktop.
  • »2016/12/30 13:11
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Joined: 2003/3/5
    Posts: 3119
    From: Canada
    Quote:

    I have already a .trashcan directory with a shortcut to Ambient Desktop. Is it ok to install it? Is there a max size of the trashcan virtual volume it creates?


    TrashFileSystem creates .mtrash directories, so there's no conflict there. There's no maximum size of a trashcan - it's merely limited by the volumes you trash files on. They remain in .mtrash directory on each volume until restored or the trashcan is emptied.
  • »2016/12/30 13:12
    Profile Visit Website
  • ZB
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    ZB
    Joined: 2008/9/29
    Posts: 115
    From:
    Nice one ! Thanks.
  • »2016/12/30 13:32
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    roschmyr
    Joined: 2003/2/20
    Posts: 207
    From: Oberhausen/Ger...
    thanks, well done, but i also miss the trashcan icon, even in MyMorphOS
  • »2016/12/30 15:27
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Joined: 2010/2/10
    Posts: 613
    From: FRANCE
    Thanks,

    MyMorphOS ? what's that ?
  • »2016/12/30 16:08
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Joined: 2013/5/29
    Posts: 523
    From:
    I see the context menu but no desktop icon. If I look at MyMorphOS I dont see any trashcan icon either. If I change to List view mode I can see the Trashcan volume but without icon.
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »2016/12/30 18:21
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Joined: 2013/5/29
    Posts: 523
    From:
    Quote:

    Thanks,

    MyMorphOS ? what's that ?


    If you doubleclick in the desktop (or Ambient Menu/MyMorphOS...) a window will be open. Thats the MyMorphOS window with your devices, assigns, etc...
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »2016/12/30 18:29
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Joined: 2010/2/10
    Posts: 613
    From: FRANCE
    ok :-) thks

    I see the same thing as tolkien.
  • »2016/12/30 19:00
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    r-tea
    Joined: 2005/3/27
    Posts: 306
    From: Poland, Zdzies...
    Will it be a part of next MorphOS release?
    Mac mini G4@1,5GHz silent upgrade + Xerox Phaser 3140 + EPSON Perfection 1240U
    Commodore C64C + 2 x 1541II + Datasette + SD-Box

    I miss draggable screens... and do you? I know I'm in a minority unfortunately.
  • »2016/12/30 21:46
    Profile
  • MorphOS Developer
    jacadcaps
    Joined: 2003/3/5
    Posts: 3119
    From: Canada
    Quote:

    i dont show a trashcan on desktop but i see context menu.


    Problem located. Should get fixed in a couple of hours...
  • »2016/12/30 21:53
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Joined: 2003/3/5
    Posts: 3119
    From: Canada
    Quote:

    Will it be a part of next MorphOS release?


    Of course.
  • »2016/12/30 21:54
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Joined: 2003/3/5
    Posts: 3119
    From: Canada
    Updated the archive with several fixes, including the missing icon problem.
  • »2016/12/31 1:51
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    realstar
    Joined: 2003/2/24
    Posts: 298
    From: Canada
    I just downloaded and installed and I am only seeing a default grey drive icon and not the custom trashcan empty/full state icons.
  • »2016/12/31 6:04
    Profile Visit Website
  • szt
  • Cocoon
    Cocoon
    szt
    Joined: 2004/10/9
    Posts: 53
    From: Hungary
    Quote:

    I just downloaded and installed and I am only seeing a default grey drive icon and not the custom trashcan empty/full state icons.


    Unfortunately, it seems, that something is still missing from the archive.
    MorphOS 3.9
    PowerMac 7,3, 1,8GHz,
    Radeon 9600
    300 GB SeagateHDD, 120 GB Samsung SSD
    LGM2382D, Canon MG7550
  • »2016/12/31 7:59
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Joined: 2010/2/10
    Posts: 613
    From: FRANCE
    thnaks it's work, i see Trashcan on my desktop :-)
  • »2016/12/31 8:36
    Profile Visit Website
  • MorphOS Developer
    geit
    Joined: 2004/9/23
    Posts: 1051
    From:
    A special note for people already using MorphOS 3.10.

    Do not install this archive! Wait for the next beta iso.

    If you install this archive you downgrade vital components of the system to 3.9, which causes other parts to fail.
  • »2016/12/31 11:24
    Profile
  • MorphOS Developer
    jacadcaps
    Joined: 2003/3/5
    Posts: 3119
    From: Canada
    Quote:

    Unfortunately, it seems, that something is still missing from the archive.


    An icon isn't part of the archive. I'm no artist and this isn't part of my bounty obligations. There's lot of stuff here for example: http://findicons.com/search/trash

    Also, there is currently no support for empty/full icons since Ambient doesn't support notifications on disk.info changes.
  • »2016/12/31 12:34
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Joined: 2013/5/29
    Posts: 523
    From:
    Now it goes perfectly! Thanks so much jacadcaps!
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »2016/12/31 12:58
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    ernsteiswuerfel
    Joined: 2015/6/18
    Posts: 558
    From: Funeralopolis
    It works, but has a small flaw. When restoring an object from Thrash I get an Ambient Error Requester:

    "Couldn't restore trashed icon of file 'blabla.png'. DOS error: invalid object lock (#211).".

    It's a simple .png file without an .info-File. The .png file itself gets restored properly anyhow.
    Talos II. [Gentoo Linux] | PMac G5 11,2. PMac G4 3,6. PBook G4 5,8. [MorphOS 3.18 / Gentoo Linux] | A600GS
  • »2016/12/31 13:52
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Papiosaur
    Joined: 2003/4/10
    Posts: 2250
    From: France
    Thanks a lot jacapcaps for this update! It's good feature for MorphOS 3.10 :-D

    What must be the name for the trashcan icon when it's not empty please ?

    I can restore when the view is by name but not when it by icon (same error 211 from precedent post), normal ?

    Can i distribute a version with icons preinstalled ?

    Thanks for your answers.

    [ Edité par Papiosaur activé 31/12/2016 14:59 ]
  • »2016/12/31 13:56
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Joined: 2003/3/5
    Posts: 3119
    From: Canada
    Quote:

    It works, but has a small flaw. When restoring an object from Thrash I get an Ambient Error Requester:

    "Couldn't restore trashed icon of file 'blabla.png'. DOS error: invalid object lock (#211).".

    It's a simple .png file without an .info-File. The .png file itself gets restored properly anyhow.


    Please re-download the archive. This is now fixed.
  • »2016/12/31 15:04
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Joined: 2003/3/5
    Posts: 3119
    From: Canada
    Quote:


    What must be the name for the trashcan icon when it's not empty please ?



    The icon sits in MOSSYS:Data/TrashFS. Simply snapshot the volume or put a new icon in the Ambient's information window and it'll get saved there.

    Quote:


    I can restore when the view is by name but not when it by icon (same error 211 from precedent post), normal ?



    That's fixed. Redownload the archive.

    Quote:

    Can i distribute a version with icons preinstalled ?


    As long as you have the right to distribute the icon file :)
  • »2016/12/31 15:06
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Papiosaur
    Joined: 2003/4/10
    Posts: 2250
    From: France
    Thanks jacadcaps for all your answers and update ;-)

    You say in news :

    Quote:

    Has 2 virtual disk.infos for empty/full state - the only file that can be written


    I've 2 icons for Trashcan, one for empty and another for full, the empty is saved as Disk.info into sys:data/TrashFS/ but how i must name the icon for full Trashcan please ? Disk.info_full ?

    [ Edité par Papiosaur activé 31/12/2016 17:30 ]
  • »2016/12/31 16:21
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    ernsteiswuerfel
    Joined: 2015/6/18
    Posts: 558
    From: Funeralopolis
    Nope, the new version did not fix my "DOS error: invalid object lock (#211)."-problem, sorry.
    Talos II. [Gentoo Linux] | PMac G5 11,2. PMac G4 3,6. PBook G4 5,8. [MorphOS 3.18 / Gentoo Linux] | A600GS
  • »2016/12/31 16:58
    Profile
  • MorphOS Developer
    jacadcaps
    Joined: 2003/3/5
    Posts: 3119
    From: Canada
    Quote:

    I've 2 icons for Trashcan, one for empty and another for full, the empty is saved as Disk.info into sys:data/TrashFS/ but how i must name the icon for full Trashcan please ? Disk.info_full ?


    The filesystem has support for 2 icons, but it's been disabled since Ambient doesn't handle that.
  • »2016/12/31 17:07
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Joined: 2003/3/5
    Posts: 3119
    From: Canada
    Quote:

    Nope, the new version did not fix my "DOS error: invalid object lock (#211)."-problem, sorry.


    Oh boy. Found another issue so please give it another try. Sorry.
  • »2016/12/31 17:15
    Profile Visit Website
  • Cocoon
    Cocoon
    zbysiuk
    Joined: 2006/8/4
    Posts: 55
    From:
    Thank you very much - nice work. I instaled it and seems to be good. BTW I copied the picture of trashcan from the top of this topic and made it an icon - I hope it is legal :)
  • »2016/12/31 17:29
    Profile
  • MorphOS Developer
    jacadcaps
    Joined: 2003/3/5
    Posts: 3119
    From: Canada
    Uploaded one more build - dual icon mode is back and Ambient will refresh the icon on desktop (does not work for MyMorphOS lister views).

    Happy New Year :)
  • »2016/12/31 21:50
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    ernsteiswuerfel
    Joined: 2015/6/18
    Posts: 558
    From: Funeralopolis
    The last build fixed the bug, now it is running flawlessly. Thanks!
    Talos II. [Gentoo Linux] | PMac G5 11,2. PMac G4 3,6. PBook G4 5,8. [MorphOS 3.18 / Gentoo Linux] | A600GS
  • »2017/1/1 10:44
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    realstar
    Joined: 2003/2/24
    Posts: 298
    From: Canada
    Latest update is working great here. It's a nice feature to have for MorphOS. Thanks.
  • »2017/1/8 6:28
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Joined: 2003/3/5
    Posts: 3119
    From: Canada
    One small update: Ambient listers can now have a Trash button. I've also changed the disk.info file location (moved them to Deficons), so you might need to copy your files over.
  • »2017/1/11 1:39
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Joined: 2010/2/10
    Posts: 613
    From: FRANCE
    i test the last version....
    big bug after reboot.

    A new text appears below on the volume's name on all icons

    and all window are broken (text etc...)
  • »2017/1/11 20:53
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Joined: 2003/3/5
    Posts: 3119
    From: Canada
    sorry, forgot to update locales. Will upload a fixed build in a few hours...

    ... The archive is now fixed. Please redownload.

    [ Edited by jacadcaps On 2017/1/11 19:17 ]
  • »2017/1/11 21:43
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Joined: 2010/2/10
    Posts: 613
    From: FRANCE
    Ok no problem... it's working now thnaks

    Can you integrate a localization ? .catalog
  • »2017/1/12 11:01
    Profile Visit Website
  • Just looking around
    Valsu
    Joined: 2017/1/18
    Posts: 8
    From:
    Installed, overwrote system files, rebooted. Trash seems to be working fine, but it seems there doesn't exist any MOSSYS:Data/TrashFS drawer. Am I missing something?
    Drawn by desire - Soaring higher
    Happy new Morpher
  • »2017/1/27 19:03
    Profile