[haiku-bugs] Re: [Haiku] #5245: Relocate Trash folder and make it multiuser-ready

  • From: "anevilyak" <trac@xxxxxxxxxxxx>
  • Date: Wed, 13 Jan 2010 00:59:16 -0000

#5245: Relocate Trash folder and make it multiuser-ready
--------------------------------+-------------------------------------------
 Reporter:  anevilyak           |       Owner:  anevilyak     
     Type:  enhancement         |      Status:  new           
 Priority:  normal              |   Milestone:  R1            
Component:  Kits/libtracker.so  |     Version:  R1/Development
 Keywords:                      |   Blockedby:                
 Platform:  All                 |    Blocking:                
--------------------------------+-------------------------------------------
Description changed by anevilyak:

Old description:

> The current Trash implementation is somewhat less than ideal for several
> reasons:
>
> 1) It requires the creation of /home/Desktop on every non-boot volume.
> 2) as a consequence of the first point it isn't really multiuser-safe.
>
> A proposed alternative is to move the Trash folder to the root dir of
> each volume, and have it segregated into per-user subdirectories. This
> will require changes to find_directory() as well as Tracker's
> FSCreateTrashDir / FSGetTrashDir and probably DesktopDirEntryIterator.
> Note that if we want the directory to be hidden when browsing the volume
> root, we will have to re-enable respecting the fInvisible attribute of
> PoseInfo, which has caveats for those multibooting with other BeOS
> variants as mentioned in r35040.

New description:

 The current Trash implementation is somewhat less than ideal for several
 reasons:

 1) It requires the creation of /home/Desktop on every non-boot volume.

 2) as a consequence of the first point it isn't really multiuser-safe.

 A proposed alternative is to move the Trash folder to the root dir of each
 volume, and have it segregated into per-user subdirectories. This will
 require changes to find_directory() as well as Tracker's FSCreateTrashDir
 / FSGetTrashDir and probably DesktopDirEntryIterator. Note that if we want
 the directory to be hidden when browsing the volume root, we will have to
 re-enable respecting the fInvisible attribute of PoseInfo, which has
 caveats for those multibooting with other BeOS variants as mentioned in
 r35040.

--

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/5245#comment:1>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: