You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.4 KiB

#include <tunables/global>
@{TG_WORKDIR}=@{HOME}/.apps/tg0
# if you don't use -workdir in your .desktop file
#@{TG_WORKDIR}=@{HOME}/.local/share/TelegramDesktop
/usr/bin/telegram-desktop {
#include <abstractions/base>
#include <abstractions/gnome>
#include <abstractions/mesa>
#include <abstractions/openssl>
# If you want audio then enable these
# #include <abstractions/audio>
# /usr/bin/jackd mrix,
# Allow usage of torsocks
/etc/tor/torsocks.conf r,
/run/user/1000/dconf/user rw,
/usr/bin/telegram-desktop mr,
/usr/share/gtk-3.0/settings.ini r,
owner @{HOME}/.cache/fontconfig/* rwl,
owner @{TG_WORKDIR}/ rw,
owner @{TG_WORKDIR}/* rw,
owner @{TG_WORKDIR}/log.txt wl,
owner @{TG_WORKDIR}/tdata/ rw,
owner @{TG_WORKDIR}/tdata/user_data/** rw,
owner @{TG_WORKDIR}/tdata/** rwk,
owner @{TG_WORKDIR}/tdata/user_data/cache/ r,
owner @{TG_WORKDIR}/tdata/user_data/cache/* r,
owner @{TG_WORKDIR}/tdata/user_data/cache/*/*/* rwk,
owner @{TG_WORKDIR}/tdata/user_data/media_cache/*/binlog rwk,
owner @{HOME}/Downloads/ rw,
owner @{HOME}/Downloads/** rw,
# Directory listing not required for screenshot copypaste
# owner @{HOME}/Pictures/Screenshots/ rw,
# Set Screenshot storage location in Spectacle to ~/Pictures/Screenshots/
owner @{HOME}/Pictures/Screenshots/** rw,
# Doesn't work for some reason
# owner @{HOME}/Downloads/Telegram Desktop/ rw,
# owner @{HOME}/Downloads/Telegram Desktop/** rw,
}