Firejail: Difference between revisions
imported>Onny Update Tor instructions |
imported>Ljlapierre I wrote a small section on my solution for getting app icons working with Firejail |
||
Line 134: | Line 134: | ||
For a detailed explanation on this setup refer the [https://www.void.gr/kargig/blog/2016/12/12/firejail-with-tor-howto original guide]. Please note that this is a experimental setup which doesn't guarantee anonymity or security in any circumstances. | For a detailed explanation on this setup refer the [https://www.void.gr/kargig/blog/2016/12/12/firejail-with-tor-howto original guide]. Please note that this is a experimental setup which doesn't guarantee anonymity or security in any circumstances. | ||
=== Add Desktop Icons to Firejailed Apps === | |||
I wanted to use Firejail to lock down Google Chrome. It worked well, however, I wanted a pretty icon for the application. | |||
There are probably better ways to do this, but I accomplished it using Home Manager to symlink Chrome's actual icon set into your local icon directory. | |||
<syntaxhighlight lang="nix"> | |||
## Firejail Config | |||
programs.firejail = { | |||
enable = true; | |||
wrappedBinaries = { | |||
google-chrome-stable = { | |||
executable = "${pkgs.google-chrome}/bin/google-chrome-stable"; | |||
profile = "${pkgs.firejail}/etc/firejail/google-chrome.profile"; | |||
desktop = "${pkgs.google-chrome}/share/applications/google-chrome.desktop"; | |||
}; | |||
}; | |||
}; | |||
## Home Manager Config | |||
home.file.".local/share/icons/hicolor/16x16/apps/google-chrome.png".source = "${pkgs.google-chrome}/share/icons/hicolor/16x16/apps/google-chrome.png"; | |||
home.file.".local/share/icons/hicolor/24x24/apps/google-chrome.png".source = "${pkgs.google-chrome}/share/icons/hicolor/24x24/apps/google-chrome.png"; | |||
home.file.".local/share/icons/hicolor/32x32/apps/google-chrome.png".source = "${pkgs.google-chrome}/share/icons/hicolor/32x32/apps/google-chrome.png"; | |||
home.file.".local/share/icons/hicolor/48x48/apps/google-chrome.png".source = "${pkgs.google-chrome}/share/icons/hicolor/48x48/apps/google-chrome.png"; | |||
home.file.".local/share/icons/hicolor/64x64/apps/google-chrome.png".source = "${pkgs.google-chrome}/share/icons/hicolor/64x64/apps/google-chrome.png"; | |||
home.file.".local/share/icons/hicolor/128x128/apps/google-chrome.png".source = "${pkgs.google-chrome}/share/icons/hicolor/128x128/apps/google-chrome.png"; | |||
home.file.".local/share/icons/hicolor/256x256/apps/google-chrome.png".source = "${pkgs.google-chrome}/share/icons/hicolor/256x256/apps/google-chrome.png"; | |||
</syntaxhighlight> | |||
[[Category:Applications]] | [[Category:Applications]] | ||
[[Category:Security]] | [[Category:Security]] |