[haiku-development] Re: Setting Tracker window properties in images

  • From: Stephan Assmus <superstippi@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 14 Jan 2010 18:13:05 +0100

On 2010-01-14 at 16:54:39 [+0100], Humdinger <humdingerb@xxxxxxxxxxxxxx> 
wrote:
> Hi there!
> 
> Has anyone thought about how to set Tracker window properties like window 
> size and position, view mode, displayed attributes and sorting order to 
> be used as defaults in generated images?
> 
> For example, for me it would make sense to not have "Size" and "Modified" 
> shown in the ~/config/be/* folders. Likewise in all folders that only 
> contain more subfolders. Or, as Pete recently remarked in a ticket, the 
> Trash could do with the "Original name" and (soon?) "Trashed" attribute.
> 
> Should that be handled by the build system with some sort of config files 
> for every folder?
> Or some script that would take a snapshot of all folder-attributes after 
> someone has manually tuned everything, and which is "played back" after 
> installation (maybe by zipping up every folder without any contained 
> files if that's possible)?

The Trash folder could easily be updated in the Tracker code. Tracker 
already uses pre-defined attribute layouts for some known directories.

As for default layouts of some other folders, it would be possible to make 
Tracker a bit smarter, like check if a folder only contains directories and 
then not display unneeded attribute columns. However, that bears a problem, 
since Tracker falls back to the attribute layout of the parent folder if a 
folder does not yet store it's own layout. So if you then open a regular 
folder with files from inside a folder that only contained folders, the 
attribute layout would be inherited and thus be stripped of columns that 
you now want. To fix that, you would have to add yet another layer of 
complexity to store whether or not the parent folder had some extra magic 
applied when defining the default layout...

Is it really that bad to sometimes have a couple unwanted attribute columns 
by default? ;-)

Best regards,
-Stephan

Other related posts: