Bounty : : Trashcan for MorphOS Released
Posted By: jacadcaps. on 2016/12/30 9: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
 
  • Order of the Butterfly
    Order of the Butterfly
    tolkien
    Joined: 2013/5/29
    Posts: 245
    From:
    Great! Thanks so much!Hope to try this night.
    PowerMac G5 and PowerBook G4 with MorphOS. Amiga 1200/060 AmigaOS 3.x
  • »2016/12/30 10:57
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    beworld
    Joined: 2010/2/10
    Posts: 138
    From: FRANCE
    thanks !
    i just install it.
    i dont show a trashcan on desktop but i see context menu.
  • »2016/12/30 12:02
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Cool_amigaN
    Joined: 2011/11/30
    Posts: 432
    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 13:44
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Joined: 2003/3/5
    Posts: 1490
    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 14:11
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Joined: 2003/3/5
    Posts: 1490
    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 14: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 14:32
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    roschmyr
    Joined: 2003/2/20
    Posts: 195
    From: Oberhausen/Ger...
    thanks, well done, but i also miss the trashcan icon, even in MyMorphOS
  • »2016/12/30 16:27
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    beworld
    Joined: 2010/2/10
    Posts: 138
    From: FRANCE
    Thanks,

    MyMorphOS ? what's that ?
  • »2016/12/30 17:08
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    tolkien
    Joined: 2013/5/29
    Posts: 245
    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.
    PowerMac G5 and PowerBook G4 with MorphOS. Amiga 1200/060 AmigaOS 3.x
  • »2016/12/30 19:21
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    tolkien
    Joined: 2013/5/29
    Posts: 245
    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...
    PowerMac G5 and PowerBook G4 with MorphOS. Amiga 1200/060 AmigaOS 3.x
  • »2016/12/30 19:29
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    beworld
    Joined: 2010/2/10
    Posts: 138
    From: FRANCE
    ok :-) thks

    I see the same thing as tolkien.
  • »2016/12/30 20:00
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    r-tea
    Joined: 2005/3/27
    Posts: 275
    From: Zdzieszowice, ...
    Will it be a part of next MorphOS release?

    I miss draggable screens... and do you? I know I'm in a minority unfortunately.
  • »2016/12/30 22:46
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Joined: 2003/3/5
    Posts: 1490
    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 22:53
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Joined: 2003/3/5
    Posts: 1490
    From: Canada
    Quote:

    Will it be a part of next MorphOS release?


    Of course.
  • »2016/12/30 22:54
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Joined: 2003/3/5
    Posts: 1490
    From: Canada
    Updated the archive with several fixes, including the missing icon problem.
  • »2016/12/31 2:51
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    realstar
    Joined: 2003/2/24
    Posts: 275
    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 7:04
    Profile
  • szt
  • Cocoon
    Cocoon
    szt
    Joined: 2004/10/9
    Posts: 52
    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 8:59
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    beworld
    Joined: 2010/2/10
    Posts: 138
    From: FRANCE
    thnaks it's work, i see Trashcan on my desktop :-)
  • »2016/12/31 9:36
    Profile Visit Website
  • MorphOS Developer
    geit
    Joined: 2004/9/23
    Posts: 888
    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 12:24
    Profile
  • MorphOS Developer
    jacadcaps
    Joined: 2003/3/5
    Posts: 1490
    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 13:34
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    tolkien
    Joined: 2013/5/29
    Posts: 245
    From:
    Now it goes perfectly! Thanks so much jacadcaps!
    PowerMac G5 and PowerBook G4 with MorphOS. Amiga 1200/060 AmigaOS 3.x
  • »2016/12/31 13:58
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    ernsteiswuerfel
    Joined: 2015/6/18
    Posts: 168
    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.
    PMac G5 11,2. PMac G5 7,3. PBook G4 5,8. PBook G4 5,6. [MorphOS 3.9 / Gentoo Linux / Ubuntu MATE 16.10] 2 x A1200. ACA-1233/55, ACA1232/40, Indivision AGA Mk2, 4 GiB CF. [Amiga OS 3.9]
  • »2016/12/31 14:52
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Papiosaur
    Joined: 2003/4/10
    Posts: 1050
    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 14:56
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Joined: 2003/3/5
    Posts: 1490
    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 16:04
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Joined: 2003/3/5
    Posts: 1490
    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 16:06
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Papiosaur
    Joined: 2003/4/10
    Posts: 1050
    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 17:21
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    ernsteiswuerfel
    Joined: 2015/6/18
    Posts: 168
    From: Funeralopolis
    Nope, the new version did not fix my "DOS error: invalid object lock (#211)."-problem, sorry.
    PMac G5 11,2. PMac G5 7,3. PBook G4 5,8. PBook G4 5,6. [MorphOS 3.9 / Gentoo Linux / Ubuntu MATE 16.10] 2 x A1200. ACA-1233/55, ACA1232/40, Indivision AGA Mk2, 4 GiB CF. [Amiga OS 3.9]
  • »2016/12/31 17:58
    Profile
  • MorphOS Developer
    jacadcaps
    Joined: 2003/3/5
    Posts: 1490
    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 18:07
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Joined: 2003/3/5
    Posts: 1490
    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 18:15
    Profile Visit Website
  • zbysiuk
    Joined: 2006/8/4
    Posts: 21
    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 18:29
    Profile
  • MorphOS Developer
    jacadcaps
    Joined: 2003/3/5
    Posts: 1490
    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 22:50
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    ernsteiswuerfel
    Joined: 2015/6/18
    Posts: 168
    From: Funeralopolis
    The last build fixed the bug, now it is running flawlessly. Thanks!
    PMac G5 11,2. PMac G5 7,3. PBook G4 5,8. PBook G4 5,6. [MorphOS 3.9 / Gentoo Linux / Ubuntu MATE 16.10] 2 x A1200. ACA-1233/55, ACA1232/40, Indivision AGA Mk2, 4 GiB CF. [Amiga OS 3.9]
  • »2017/1/1 11:44
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    realstar
    Joined: 2003/2/24
    Posts: 275
    From: Canada
    Latest update is working great here. It's a nice feature to have for MorphOS. Thanks.
  • »2017/1/8 7:28
    Profile
  • MorphOS Developer
    jacadcaps
    Joined: 2003/3/5
    Posts: 1490
    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 2:39
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    beworld
    Joined: 2010/2/10
    Posts: 138
    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 21:53
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Joined: 2003/3/5
    Posts: 1490
    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 22:43
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    beworld
    Joined: 2010/2/10
    Posts: 138
    From: FRANCE
    Ok no problem... it's working now thnaks

    Can you integrate a localization ? .catalog
  • »2017/1/12 12: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 20:03
    Profile