KDE support, etc.

master
hammaspeikko 4 years ago
parent e7e1176f43
commit 118f72e751
Signed by: hammaspeikko
GPG Key ID: 1B5EF182ADF8A646

@ -6,4 +6,13 @@ I've only tested these on Arch Linux but they should work on other Linux distros
## How to use
Place whichever apparmor profile you want in /etc/apparmor.d/ and run `aa-enforce (profile)` as root.
Place whichever apparmor profile you want in /etc/apparmor.d/ and run `aa-enforce (profile)` as root.
## Firefox troubleshooting
Your Firefox profile cannot be loaded. It may be missing or inaccessible.
Run:
```bash
mkdir -p ~/.cache/mozilla/firefox/
```

@ -2,7 +2,7 @@
Version=1.0
Name=Telegram Desktop
Comment=Official desktop version of Telegram messaging app
Exec=torsocks telegram-desktop -many -workdir .apps/tg0 -- %u
Exec=env XDG_SESSION_DESKTOP=Xfce XDG_CURRENT_DESKTOP=Xfce torsocks telegram-desktop -many -workdir .apps/tg0 -- %u
Icon=telegram
Terminal=false
StartupWMClass=TelegramDesktop

@ -2,8 +2,10 @@
sudo cp usr.bin.telegram-desktop /etc/apparmor.d/usr.bin.telegram-desktop
sudo cp usr.bin.firefox /etc/apparmor.d/usr.bin.firefox
sudo cp usr.bin.tor /etc/apparmor.d/usr.bin.tor
cd /tmp # added due to Profile for <redacted>/apparmor-profiles/usr.bin.telegram-desktop not found, skipping
sudo aa-enforce "usr.bin.telegram-desktop" && \
sudo aa-enforce "usr.bin.firefox" && \
sudo aa-enforce "usr.bin.tor" && \
sudo systemctl reload apparmor

@ -12,20 +12,14 @@
#include <abstractions/openssl>
# If you want audio then enable these
# #include <abstractions/audio>
# /usr/bin/jackd mrix,
# #include <abstractions/audio>
# /usr/bin/jackd mrix,
# Allow usage of torsocks
/etc/tor/torsocks.conf r,
/run/user/1000/dconf/user rw,
/sys/devices/pci0000:00/0000:00:02.0/device r,
/sys/devices/pci0000:00/0000:00:02.0/subsystem_device r,
/sys/devices/pci0000:00/0000:00:02.0/subsystem_vendor r,
/sys/devices/pci0000:00/0000:00:02.0/uevent r,
/sys/devices/pci0000:00/0000:00:02.0/vendor r,
/usr/bin/telegram-desktop mr,
/usr/share/gtk-3.0/settings.ini r,
@ -45,6 +39,13 @@
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,

Loading…
Cancel
Save