# Firejail profile for freeciv-qt
# Description: A multi-player strategy game, with Qt GUI
# This file is overwritten after every install/update
# Persistent local customizations
include freeciv-qt.local
# Persistent global definitions
include globals.local

# No longer required? Test this.
noblacklist ${PATH}/lua*
noblacklist /usr/lib/lua
noblacklist /usr/include/lua*
noblacklist /usr/share/lua

noblacklist ${HOME}/.freeciv

include disable-common.inc
include disable-devel.inc
include disable-exec.inc
include disable-interpreters.inc
include disable-passwdmgr.inc
include disable-programs.inc
include disable-xdg.inc

# # alsa audio will work with ipc-namespace,
# # but it hogs the alsa device from other applications
ignore ipc-namespace

private-bin freeciv-qt,freeciv-mp-qt,freeciv-server,freeciv-manual,freeciv-ruleedit
private-etc asound.conf,freeciv,group,localtime,machine-id,pulse,resolv.conf

# Breaks freeciv-qt
ignore memory-deny-write-execute

include freeciv.profile