X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=wscript;fp=wscript;h=d66aba33526fb72695dc97b831411cda9ee750a2;hp=e30727c8cfceba81d7e9a4b4ce99faf0562c7caf;hb=6fe11fc6d50bdcd913d92601567aece6716c7112;hpb=280454a14ebf4dceeac3077e41fceec36d9ec3e3 diff --git a/wscript b/wscript index e30727c8c..d66aba335 100644 --- a/wscript +++ b/wscript @@ -680,6 +680,9 @@ def create_version_cc(version, cxx_flags): def post(ctx): if ctx.cmd == 'install' and ctx.env.TARGET_LINUX: ctx.exec_command('/sbin/ldconfig') + exe = os.path.join(ctx.env['INSTALL_PREFIX'], 'bin/dcpomatic2_disk_writer') + if os.path.exists(exe): + os.system('setcap "cap_dac_override+ep cap_sys_admin+ep" %s' % exe) def pot(bld): bld.recurse('src')