diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-06-18 20:21:06 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-06-21 00:45:46 +0200 |
| commit | 6fe11fc6d50bdcd913d92601567aece6716c7112 (patch) | |
| tree | d3b35c77b28913f37262f9cc4499b8fe3c9295d3 /wscript | |
| parent | 280454a14ebf4dceeac3077e41fceec36d9ec3e3 (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-- | wscript | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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') |
