What I do in my day job (which may not be what is wanted here) is to run
'incrond' as a system service so that it picks up all file system events as
they occur without a dependency on application services. There is indeed the
problem though that if events occur when the inotify/incron monitoring is off
they are lost so, if you can't rely on system configuration to keep incrond
up, you would need to do a full file system scan to pick up changes since dt
last ran.
Rgds,
Rob.
From: johannes hanika [mailto:hana...@gmail.com]
Sent: 14 October 2013 14:39
To: Rob Z. Smith
Cc: darktable-devel
Subject: Re: [darktable-devel] xml sidecar files and other programs
On Mon, Oct 14, 2013 at 3:26 PM, Rob Z. Smith
<rzsm...@nhbc.co.uk<mailto:rzsm...@nhbc.co.uk>> wrote:
I've found it very easy and efficient to do that sort of stuff with 'inotify'
where you can pretty much instantly call an application/script based on system
file-open/close/modify/read event and don't need to do any scanning. It only
works on files or directories though - not a hierarchical directory tree.
we had support for that in dt a year ago or so (nobody really depended on it,
so we deleted the code). how do you check whether a file changed behind your
back while dt wasn't running?
j.
Rgds,
Rob.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I think you would need to setup some file system notification thing to find
out if and when an xmp file changed. i have no idea how you would do that if dt
isn't running already. you would need to rescan all your xmp (several 10k for
me) at startup. unless there is a clever way to prune that (hierarchical
checksums with support in the file system..?) i think i'm not willing to pay
the performance penalty for this..
you can also re-read the xmp as soon as an image turns up in lighttable mode..
but that would not read new tags etc which potentially affect your collection.
so if you collect by a certain tag and load xmp on demand your lighttable view
might jump and keep adding/removing images.
j.
This email is confidential and is intended for the addressee only. If you are
not the addressee, please delete the email and do not use it in any way. Please
note that any views or opinions presented in this email are solely those of the
author and do not necessarily represent those of the company. NHBC reserves the
right to monitor all email communications. The recipient should check this
email and any attachments for the presence of viruses. The company accepts no
liability for any damage caused by any virus transmitted by this email. NHBC,
the National House-Building Council, is limited by guarantee in England, No
320784. Registered address: NHBC House, Davy Avenue, Knowlhill, Milton Keynes
MK5 8FP. NHBC is authorised by the Prudential Regulation Authority and
regulated by the Financial Conduct Authority and Prudential Regulation
Authority. NHBC Building Control Services Ltd, registered by guarantee in
England with Company No. 01952969. Registered address: NHBC House, Davy Avenue,
Knowlhill, Milton Keynes MK5 8FP. NHBC Services Ltd registered by guarantee in
England, No 03067703. Registered address: NHBC House, Davy Avenue, Knowlhill,
Milton Keynes MK5 8FP. If you make a claim under a Buildmark policy your
personal details will be stored and processed in accordance with the Data
Protection Act. Your personal details may be passed to others involved with
your claim such as the original builder, or a consultant or remedial works
contractor that we may employ in connection with your claim(s) and matter
ancillary to your claim(s). Other than disclosure provided for in this
statement, we will not pass any data about you to any other party without your
permission unless we are required to do so by law.
This email is confidential and is intended for the addressee only. If you are
not the addressee, please delete the email and do not use it in any way. Please
note that any views or opinions presented in this email are solely those of the
author and do not necessarily represent those of the company. NHBC reserves the
right to monitor all email communications. The recipient should check this
email and any attachments for the presence of viruses. The company accepts no
liability for any damage caused by any virus transmitted by this email. NHBC,
the National House-Building Council, is limited by guarantee in England, No
320784. Registered address: NHBC House, Davy Avenue, Knowlhill, Milton Keynes
MK5 8FP. NHBC is authorised by the Prudential Regulation Authority and
regulated by the Financial Conduct Authority and Prudential Regulation
Authority. NHBC Building Control Services Ltd, registered by guarantee in
England with Company No. 01952969. Registered address: NHBC House, Davy Avenue,
Knowlhill, Milton Keynes MK5 8FP. NHBC Services Ltd registered by guarantee in
England, No 03067703. Registered address: NHBC House, Davy Avenue, Knowlhill,
Milton Keynes MK5 8FP. If you make a claim under a Buildmark policy your
personal details will be stored and processed in accordance with the Data
Protection Act. Your personal details may be passed to others involved with
your claim such as the original builder, or a consultant or remedial works
contractor that we may employ in connection with your claim(s) and matter
ancillary to your claim(s). Other than disclosure provided for in this
statement, we will not pass any data about you to any other party without your
permission unless we are required to do so by law.
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
darktable-devel mailing list
darktable-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/darktable-devel