ignore noblacklist ${HOME}/.kde/share/apps/ktorrent
ignore noblacklist ${HOME}/.kde/share/config/ktorrentrc
ignore noblacklist ${HOME}/.kde4/share/apps/ktorrent
ignore noblacklist ${HOME}/.kde4/share/config/ktorrentrc
ignore mkdir ${HOME}/.kde/share/apps/ktorrent
ignore mkdir ${HOME}/.kde4/share/apps/ktorrent
ignore mkfile ${HOME}/.kde/share/config/ktorrentrc
ignore mkfile ${HOME}/.kde4/share/config/ktorrentrc
ignore whitelist  ${DOWNLOADS}
ignore whitelist ${HOME}/.kde/share/apps/ktorrent
ignore whitelist ${HOME}/.kde/share/config/ktorrentrc
ignore whitelist ${HOME}/.kde4/share/apps/ktorrent
ignore whitelist ${HOME}/.kde4/share/config/ktorrentrc

include disable-xdg.inc

# # whitelist entire .config as kde workaround
whitelist ${HOME}/.config
whitelist ${HOME}/torrents

# # machine-id breaks systray support
ignore machine-id
protocol unix,inet,netlink
# # seccomp breaks integrated file manager on kde applications
# # due to syscall name_to_handle_at
seccomp !name_to_handle_at
tracelog

# # dbus-launch required for systray support
private-bin ktorrent,dbus-launch,kdeinit5
private-cache
private-etc ca-certificates,fonts,machine-id,passwd,resolv.conf,ssl,xdg

# # Use with hardened-malloc package
env LD_PRELOAD=/usr/lib/libhardened_malloc.so

# ignore dbus-user none
# ignore dbus-system none