Artificial intelligent assistant

Allow to run Telegram (or any other application) via firejail, prevent it from running directly Preferably without using `sudo`. So far I've just saved it under `/opt/telegram/Telegram` without adding it to `$PATH` but that's not a solution since I can easily run it accidentally.

A partial solution to this problem is to 1) add `/opt/telegram` to `$PATH` and 2) create a symbolic link


sudo ln -s /usr/bin/firejail /usr/local/bin/Telegram


Now Telegram will run automatically in a Firejail sandbox _when no absolute or relative path is specified_.

In other words, the following commands will start Telegram in a sandbox:


Telegram
firejail Telegram
firejail /opt/telegram/Telegram
/usr/bin/firejail Telegram
/usr/bin/firejail /opt/telegram/Telegram


The following command will still run Telegram without sandbox:


/opt/telegram/Telegram


You can verify that Telegram runs in a sandbox with `firejail --list` and `firejail --tree`.

Source: man 1 firejail, section `DESKTOP INTEGRATION`

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 0dc9d516b18a02bc75e4fb737e68c044