summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-06-18 20:21:06 +0200
committerCarl Hetherington <cth@carlh.net>2022-06-21 00:45:46 +0200
commit6fe11fc6d50bdcd913d92601567aece6716c7112 (patch)
treed3b35c77b28913f37262f9cc4499b8fe3c9295d3 /wscript
parent280454a14ebf4dceeac3077e41fceec36d9ec3e3 (diff)
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.
Diffstat (limited to 'wscript')
-rw-r--r--wscript3
1 files changed, 3 insertions, 0 deletions
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')