From 6fe11fc6d50bdcd913d92601567aece6716c7112 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 18 Jun 2022 20:21:06 +0200 Subject: [PATCH] Set up dcpomatic2_disk_writer capability on install. This might mean we can remove the same setup from the cscript, but I'm not sure. --- wscript | 3 +++ 1 file changed, 3 insertions(+) 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') -- 2.30.2