| 1 |
<!DOCTYPE html> |
| 2 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 |
<head> |
| 4 |
<meta charset="utf-8" /> |
| 5 |
<meta name="generator" content="pandoc" /> |
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" /> |
| 7 |
<title>-</title> |
| 8 |
<style> |
| 9 |
code{white-space: pre-wrap;} |
| 10 |
span.smallcaps{font-variant: small-caps;} |
| 11 |
span.underline{text-decoration: underline;} |
| 12 |
div.column{display: inline-block; vertical-align: top; width: 50%;} |
| 13 |
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;} |
| 14 |
ul.task-list{list-style: none;} |
| 15 |
</style> |
| 16 |
<link rel="stylesheet" href="data:text/css,%3Aroot%20%7B%0A%2D%2Dtext%2Dcolor%3A%20%2324292e%3B%0A%2D%2Dbackground%2Dcolor%3A%20%23ffffff%3B%0A%2D%2Dalt%2Dbackground%2Dcolor%3A%20%23f6f8fa%3B%0A%2D%2Dlink%2Dcolor%3A%20%230366d6%3B%0A%2D%2Dblockquote%2Dtext%2Dcolor%3A%20%236a737d%3B%0A%2D%2Dblockquote%2Dborder%2Dcolor%3A%20%23dfe2e5%3B%0A%2D%2Dheader%2Dborder%2Dcolor%3A%20%23eaecef%3B%0A%2D%2Dhr%2Dbackground%2Dcolor%3A%20%23e1e4e8%3B%0A%2D%2Dtable%2Dtr%2Dborder%2Dcolor%3A%20%23c6cbd1%3B%0A%2D%2Dtable%2Dtd%2Dborder%2Dcolor%3A%20%23dfe2e5%3B%0A%2D%2Dkbd%2Dtext%2Dcolor%3A%20%23444d56%3B%0A%2D%2Dkbd%2Dbackground%2Dcolor%3A%20%23fafbfc%3B%0A%2D%2Dkbd%2Dborder%2Dcolor%3A%20%23c6cbd1%3B%0A%2D%2Dkbd%2Dshadow%2Dcolor%3A%20%23959da5%3B%0A%7D%0A%2A%20%7B%0Abox%2Dsizing%3A%20border%2Dbox%3B%0A%7D%0Ahtml%20%7B%0Afont%2Dsize%3A%2016px%3B%0A%7D%0Abody%20%7B%0Acolor%3A%20var%28%2D%2Dtext%2Dcolor%29%3B%0Abackground%2Dcolor%3A%20var%28%2D%2Dbackground%2Dcolor%29%3B%0Afont%2Dfamily%3A%20%22Fira%20Sans%22%2C%20fira%2Dsans%2C%20sans%2Dserif%2C%20color%2Demoji%3B%0Aline%2Dheight%3A%201%2E5%3B%0Aword%2Dwrap%3A%20break%2Dword%3B%0Amax%2Dwidth%3A%20980px%3B%0Amargin%3A%20auto%3B%0Apadding%3A%204em%3B%0A%7D%0A%40media%20screen%20and%20%28max%2Dwidth%3A%20799px%29%20%7B%0Ahtml%20%7B%0Afont%2Dsize%3A%2014px%3B%0A%7D%0Abody%20%7B%0Apadding%3A%201em%3B%0A%7D%0A%7D%0A%40media%20screen%20and%20%28min%2Dwidth%3A%201280px%29%20%7B%0Ahtml%20%7B%0Afont%2Dsize%3A%2018px%3B%0A%7D%0A%7D%0Aa%20%7B%0Abackground%2Dcolor%3A%20transparent%3B%0Acolor%3A%20var%28%2D%2Dlink%2Dcolor%29%3B%0Atext%2Ddecoration%3A%20none%3B%0A%7D%0Aa%3Aactive%2C%0Aa%3Ahover%20%7B%0Aoutline%2Dwidth%3A%200%3B%0A%7D%0Aa%3Ahover%20%7B%0Atext%2Ddecoration%3A%20underline%3B%0A%7D%0Astrong%20%7B%0Afont%2Dweight%3A%20600%3B%0A%7D%0Aimg%20%7B%0Aborder%2Dstyle%3A%20none%3B%0A%7D%0Ahr%20%7B%0Abox%2Dsizing%3A%20content%2Dbox%3B%0Aheight%3A%200%2E25em%3B%0Apadding%3A%200%3B%0Amargin%3A%201%2E5em%200%3B%0Aoverflow%3A%20hidden%3B%0Abackground%2Dcolor%3A%20var%28%2D%2Dhr%2Dbackground%2Dcolor%29%3B%0Aborder%3A%200%3B%0A%7D%0Ahr%3A%3Abefore%20%7B%0Adisplay%3A%20table%3B%0Acontent%3A%20%22%22%3B%0A%7D%0Ahr%3A%3Aafter%20%7B%0Adisplay%3A%20table%3B%0Aclear%3A%20both%3B%0Acontent%3A%20%22%22%3B%0A%7D%0Ainput%20%7B%0Afont%2Dfamily%3A%20inherit%3B%0Afont%2Dsize%3A%20inherit%3B%0Aline%2Dheight%3A%20inherit%3B%0Amargin%3A%200%3B%0Aoverflow%3A%20visible%3B%0A%7D%0A%5Btype%3D%22checkbox%22%5D%20%7B%0Abox%2Dsizing%3A%20border%2Dbox%3B%0Apadding%3A%200%3B%0A%7D%0Atable%20%7B%0Aborder%2Dspacing%3A%200%3B%0Aborder%2Dcollapse%3A%20collapse%3B%0A%7D%0Atd%2C%0Ath%20%7B%0Apadding%3A%200%3B%0A%7D%0Ah1%2C%0Ah2%2C%0Ah3%2C%0Ah4%2C%0Ah5%2C%0Ah6%20%7B%0Afont%2Dweight%3A%20600%3B%0Amargin%3A%200%3B%0A%7D%0Ah1%20%7B%0Afont%2Dsize%3A%202em%3B%0A%7D%0Ah2%20%7B%0Afont%2Dsize%3A%201%2E5em%3B%0A%7D%0Ah3%20%7B%0Afont%2Dsize%3A%201%2E25em%3B%0A%7D%0Ah4%20%7B%0Afont%2Dsize%3A%201em%3B%0A%7D%0Ah5%20%7B%0Afont%2Dsize%3A%200%2E875em%3B%0A%7D%0Ah6%20%7B%0Afont%2Dsize%3A%200%2E85em%3B%0A%7D%0Ap%20%7B%0Amargin%2Dtop%3A%200%3B%0Amargin%2Dbottom%3A%200%2E625em%3B%0A%7D%0Ablockquote%20%7B%0Amargin%3A%200%3B%0A%7D%0Aul%2C%0Aol%20%7B%0Apadding%2Dleft%3A%200%3B%0Amargin%2Dtop%3A%200%3B%0Amargin%2Dbottom%3A%200%3B%0A%7D%0Aol%20ol%2C%0Aul%20ol%20%7B%0Alist%2Dstyle%2Dtype%3A%20lower%2Droman%3B%0A%7D%0Aul%20ul%20ol%2C%0Aul%20ol%20ol%2C%0Aol%20ul%20ol%2C%0Aol%20ol%20ol%20%7B%0Alist%2Dstyle%2Dtype%3A%20lower%2Dalpha%3B%0A%7D%0Add%20%7B%0Amargin%2Dleft%3A%200%3B%0A%7D%0Acode%2C%0Akbd%2C%0Apre%20%7B%0Afont%2Dfamily%3A%20%22Fira%20Mono%22%2C%20fira%2Dmono%2C%20monospace%2C%20color%2Demoji%3B%0Afont%2Dsize%3A%201em%3B%0Aword%2Dwrap%3A%20normal%3B%0A%7D%0Acode%20%7B%0Aborder%2Dradius%3A%200%2E1875em%3B%0Afont%2Dsize%3A%200%2E85em%3B%0Apadding%3A%200%2E2em%200%2E4em%3B%0Amargin%3A%200%3B%0A%7D%0Apre%20%7B%0Amargin%2Dtop%3A%200%3B%0Amargin%2Dbottom%3A%200%3B%0Afont%2Dsize%3A%200%2E75em%3B%0A%7D%0Apre%3Ecode%20%7B%0Apadding%3A%200%3B%0Amargin%3A%200%3B%0Afont%2Dsize%3A%201em%3B%0Aword%2Dbreak%3A%20normal%3B%0Awhite%2Dspace%3A%20pre%3B%0Abackground%3A%20transparent%3B%0Aborder%3A%200%3B%0A%7D%0A%2Ehighlight%20%7B%0Amargin%2Dbottom%3A%201em%3B%0A%7D%0A%2Ehighlight%20pre%20%7B%0Amargin%2Dbottom%3A%200%3B%0Aword%2Dbreak%3A%20normal%3B%0A%7D%0A%2Ehighlight%20pre%2C%0Apre%20%7B%0Apadding%3A%201em%3B%0Aoverflow%3A%20auto%3B%0Afont%2Dsize%3A%200%2E85em%3B%0Aline%2Dheight%3A%201%2E5%3B%0Abackground%2Dcolor%3A%20var%28%2D%2Dalt%2Dbackground%2Dcolor%29%3B%0Aborder%2Dradius%3A%200%2E1875em%3B%0A%7D%0Apre%20code%20%7B%0Abackground%2Dcolor%3A%20transparent%3B%0Aborder%3A%200%3B%0Adisplay%3A%20inline%3B%0Apadding%3A%200%3B%0Amargin%3A%200%3B%0Aoverflow%3A%20visible%3B%0Aline%2Dheight%3A%20inherit%3B%0Aword%2Dwrap%3A%20normal%3B%0A%7D%0A%2Epl%2D0%20%7B%0Apadding%2Dleft%3A%200%20%21important%3B%0A%7D%0A%2Epl%2D1%20%7B%0Apadding%2Dleft%3A%200%2E25em%20%21important%3B%0A%7D%0A%2Epl%2D2%20%7B%0Apadding%2Dleft%3A%200%2E5em%20%21important%3B%0A%7D%0A%2Epl%2D3%20%7B%0Apadding%2Dleft%3A%201em%20%21important%3B%0A%7D%0A%2Epl%2D4%20%7B%0Apadding%2Dleft%3A%201%2E5em%20%21important%3B%0A%7D%0A%2Epl%2D5%20%7B%0Apadding%2Dleft%3A%202em%20%21important%3B%0A%7D%0A%2Epl%2D6%20%7B%0Apadding%2Dleft%3A%202%2E5em%20%21important%3B%0A%7D%0A%2Emarkdown%2Dbody%3A%3Abefore%20%7B%0Adisplay%3A%20table%3B%0Acontent%3A%20%22%22%3B%0A%7D%0A%2Emarkdown%2Dbody%3A%3Aafter%20%7B%0Adisplay%3A%20table%3B%0Aclear%3A%20both%3B%0Acontent%3A%20%22%22%3B%0A%7D%0A%2Emarkdown%2Dbody%3E%2A%3Afirst%2Dchild%20%7B%0Amargin%2Dtop%3A%200%20%21important%3B%0A%7D%0A%2Emarkdown%2Dbody%3E%2A%3Alast%2Dchild%20%7B%0Amargin%2Dbottom%3A%200%20%21important%3B%0A%7D%0Aa%3Anot%28%5Bhref%5D%29%20%7B%0Acolor%3A%20inherit%3B%0Atext%2Ddecoration%3A%20none%3B%0A%7D%0A%2Eanchor%20%7B%0Afloat%3A%20left%3B%0Apadding%2Dright%3A%200%2E25em%3B%0Amargin%2Dleft%3A%20%2D1%2E25em%3B%0Aline%2Dheight%3A%201%3B%0A%7D%0A%2Eanchor%3Afocus%20%7B%0Aoutline%3A%20none%3B%0A%7D%0Ap%2C%0Ablockquote%2C%0Aul%2C%0Aol%2C%0Adl%2C%0Atable%2C%0Apre%20%7B%0Amargin%2Dtop%3A%200%3B%0Amargin%2Dbottom%3A%201em%3B%0A%7D%0Ablockquote%20%7B%0Apadding%3A%200%201em%3B%0Acolor%3A%20var%28%2D%2Dblockquote%2Dtext%2Dcolor%29%3B%0Aborder%2Dleft%3A%200%2E25em%20solid%20var%28%2D%2Dblockquote%2Dborder%2Dcolor%29%3B%0A%7D%0Ablockquote%3E%3Afirst%2Dchild%20%7B%0Amargin%2Dtop%3A%200%3B%0A%7D%0Ablockquote%3E%3Alast%2Dchild%20%7B%0Amargin%2Dbottom%3A%200%3B%0A%7D%0Akbd%20%7B%0Adisplay%3A%20inline%2Dblock%3B%0Apadding%3A%200%2E1875em%200%2E3125em%3B%0Afont%2Dsize%3A%200%2E6875em%3B%0Aline%2Dheight%3A%201%3B%0Acolor%3A%20var%28%2D%2Dkbd%2Dtext%2Dcolor%29%3B%0Avertical%2Dalign%3A%20middle%3B%0Abackground%2Dcolor%3A%20var%28%2D%2Dkbd%2Dbackground%2Dcolor%29%3B%0Aborder%3A%20solid%201px%20var%28%2D%2Dkbd%2Dborder%2Dcolor%29%3B%0Aborder%2Dbottom%2Dcolor%3A%20var%28%2D%2Dkbd%2Dshadow%2Dcolor%29%3B%0Aborder%2Dradius%3A%203px%3B%0Abox%2Dshadow%3A%20inset%200%20%2D1px%200%20var%28%2D%2Dkbd%2Dshadow%2Dcolor%29%3B%3B%0A%7D%0Ah1%2C%0Ah2%2C%0Ah3%2C%0Ah4%2C%0Ah5%2C%0Ah6%20%7B%0Amargin%2Dtop%3A%201%2E5em%3B%0Amargin%2Dbottom%3A%201em%3B%0Afont%2Dweight%3A%20600%3B%0Aline%2Dheight%3A%201%2E25%3B%0A%7D%0Ah1%3Ahover%20%2Eanchor%2C%0Ah2%3Ahover%20%2Eanchor%2C%0Ah3%3Ahover%20%2Eanchor%2C%0Ah4%3Ahover%20%2Eanchor%2C%0Ah5%3Ahover%20%2Eanchor%2C%0Ah6%3Ahover%20%2Eanchor%20%7B%0Atext%2Ddecoration%3A%20none%3B%0A%7D%0Ah1%20%7B%0Apadding%2Dbottom%3A%200%2E3em%3B%0Afont%2Dsize%3A%202em%3B%0Aborder%2Dbottom%3A%201px%20solid%20var%28%2D%2Dheader%2Dborder%2Dcolor%29%3B%0A%7D%0Ah2%20%7B%0Apadding%2Dbottom%3A%200%2E3em%3B%0Afont%2Dsize%3A%201%2E5em%3B%0Aborder%2Dbottom%3A%201px%20solid%20var%28%2D%2Dheader%2Dborder%2Dcolor%29%3B%0A%7D%0Ah3%20%7B%0Afont%2Dsize%3A%201%2E25em%3B%0A%7D%0Ah4%20%7B%0Afont%2Dsize%3A%201em%3B%0A%7D%0Ah5%20%7B%0Afont%2Dsize%3A%200%2E875em%3B%0A%7D%0Ah6%20%7B%0Afont%2Dsize%3A%200%2E85em%3B%0Aopacity%3A%200%2E67%3B%0A%7D%0Aul%2C%0Aol%20%7B%0Apadding%2Dleft%3A%202em%3B%0A%7D%0Aul%20ul%2C%0Aul%20ol%2C%0Aol%20ol%2C%0Aol%20ul%20%7B%0Amargin%2Dtop%3A%200%3B%0Amargin%2Dbottom%3A%200%3B%0A%7D%0Ali%20%7B%0Aoverflow%2Dwrap%3A%20break%2Dword%3B%0A%7D%0Ali%3Ep%20%7B%0Amargin%2Dtop%3A%201em%3B%0A%7D%0Ali%2Bli%20%7B%0Amargin%2Dtop%3A%200%2E25em%3B%0A%7D%0Adl%20%7B%0Apadding%3A%200%3B%0A%7D%0Adl%20dt%20%7B%0Apadding%3A%200%3B%0Amargin%2Dtop%3A%201em%3B%0Afont%2Dsize%3A%201em%3B%0Afont%2Dstyle%3A%20italic%3B%0Afont%2Dweight%3A%20600%3B%0A%7D%0Adl%20dd%20%7B%0Apadding%3A%200%201em%3B%0Amargin%2Dbottom%3A%201em%3B%0A%7D%0Atable%20%7B%0Adisplay%3A%20block%3B%0Awidth%3A%20100%25%3B%0Aoverflow%3A%20auto%3B%0A%7D%0Atable%20th%20%7B%0Afont%2Dweight%3A%20600%3B%0A%7D%0Atable%20th%2C%0Atable%20td%20%7B%0Apadding%3A%200%2E375em%200%2E8125em%3B%0Aborder%3A%201px%20solid%20var%28%2D%2Dtable%2Dtd%2Dborder%2Dcolor%29%3B%0A%7D%0Atable%20tr%20%7B%0Abackground%2Dcolor%3A%20var%28%2D%2Dbackground%2Dcolor%29%3B%0Aborder%2Dtop%3A%201px%20solid%20var%28%2D%2Dtable%2Dtr%2Dborder%2Dcolor%29%3B%0A%7D%0Atable%20tr%3Anth%2Dchild%282n%29%20%7B%0Abackground%2Dcolor%3A%20var%28%2D%2Dalt%2Dbackground%2Dcolor%29%3B%0A%7D%0Aimg%20%7B%0Amax%2Dwidth%3A%20100%25%3B%0Abox%2Dsizing%3A%20content%2Dbox%3B%0A%7D%0Aimg%5Balign%3Dright%5D%20%7B%0Apadding%2Dleft%3A%201%2E25em%3B%0A%7D%0Aimg%5Balign%3Dleft%5D%20%7B%0Apadding%2Dright%3A%201%2E25em%3B%0A%7D%0A%2Etask%2Dlist%2Ditem%20%7B%0Alist%2Dstyle%2Dtype%3A%20none%3B%0A%7D%0A%2Etask%2Dlist%2Ditem%2B%2Etask%2Dlist%2Ditem%20%7B%0Amargin%2Dtop%3A%200%2E1875em%3B%0A%7D%0A%2Etask%2Dlist%2Ditem%20input%20%7B%0Amargin%3A%200%200%2E2em%200%2E25em%20%2D1%2E6em%3B%0Avertical%2Dalign%3A%20middle%3B%0A%7D%0A%3Aroot%20%7B%0A%2D%2Dtext%2Dcolor%3A%20%232e3436%3B%0A%2D%2Dbackground%2Dcolor%3A%20%23f6f5f4%3B%0A%2D%2Dalt%2Dbackground%2Dcolor%3A%20%23edeeef%3B%0A%2D%2Dlink%2Dcolor%3A%20%230d71de%3B%0A%2D%2Dblockquote%2Dtext%2Dcolor%3A%20%23747e85%3B%0A%2D%2Dblockquote%2Dborder%2Dcolor%3A%20%23d6d8da%3B%0A%2D%2Dheader%2Dborder%2Dcolor%3A%20%23e1e2e4%3B%0A%2D%2Dhr%2Dbackground%2Dcolor%3A%20%23d8dadd%3B%0A%2D%2Dtable%2Dtr%2Dborder%2Dcolor%3A%20%23bdc1c6%3B%0A%2D%2Dtable%2Dtd%2Dborder%2Dcolor%3A%20%23d6d8da%3B%0A%2D%2Dkbd%2Dtext%2Dcolor%3A%20%234e585e%3B%0A%2D%2Dkbd%2Dbackground%2Dcolor%3A%20%23f1f1f1%3B%0A%2D%2Dkbd%2Dborder%2Dcolor%3A%20%23bdc1c6%3B%0A%2D%2Dkbd%2Dshadow%2Dcolor%3A%20%238c939a%3B%0A%7D%0A%40media%20%28prefers%2Dcolor%2Dscheme%3A%20dark%29%20%7B%0A%3Aroot%20%7B%0A%2D%2Dtext%2Dcolor%3A%20%23eeeeec%3B%0A%2D%2Dbackground%2Dcolor%3A%20%23353535%3B%0A%2D%2Dalt%2Dbackground%2Dcolor%3A%20%233a3a3a%3B%0A%2D%2Dlink%2Dcolor%3A%20%23b5daff%3B%0A%2D%2Dblockquote%2Dtext%2Dcolor%3A%20%23a8a8a6%3B%0A%2D%2Dblockquote%2Dborder%2Dcolor%3A%20%23525252%3B%0A%2D%2Dheader%2Dborder%2Dcolor%3A%20%23474747%3B%0A%2D%2Dhr%2Dbackground%2Dcolor%3A%20%23505050%3B%0A%2D%2Dtable%2Dtr%2Dborder%2Dcolor%3A%20%23696969%3B%0A%2D%2Dtable%2Dtd%2Dborder%2Dcolor%3A%20%23525252%3B%0A%2D%2Dkbd%2Dtext%2Dcolor%3A%20%23cececc%3B%0A%2D%2Dkbd%2Dbackground%2Dcolor%3A%20%233c3c3c%3B%0A%2D%2Dkbd%2Dborder%2Dcolor%3A%20%23696969%3B%0A%2D%2Dkbd%2Dshadow%2Dcolor%3A%20%23979797%3B%0A%7D%0A%7D%0A" /> |
| 17 |
<!--[if lt IE 9]> |
| 18 |
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script> |
| 19 |
<![endif]--> |
| 20 |
<style> |
| 21 |
.task-list-item { |
| 22 |
list-style-type: none; |
| 23 |
} |
| 24 |
.task-list-item-checkbox { |
| 25 |
margin-left: -1.6em; |
| 26 |
} |
| 27 |
</style> |
| 28 |
</head> |
| 29 |
<body> |
| 30 |
<h1 id="documentation">Documentation</h1> |
| 31 |
<h2 id="table-of-contents">Table of contents</h2> |
| 32 |
<ul> |
| 33 |
<li> |
| 34 |
<a href="#permissions">Permissions</a> |
| 35 |
<ul> |
| 36 |
<li> |
| 37 |
<a href="#share">Share</a> |
| 38 |
</li> |
| 39 |
<li> |
| 40 |
<a href="#socket">Socket</a> |
| 41 |
</li> |
| 42 |
<li> |
| 43 |
<a href="#device">Device</a> |
| 44 |
</li> |
| 45 |
<li> |
| 46 |
<a href="#allow">Allow</a> |
| 47 |
</li> |
| 48 |
<li> |
| 49 |
<a href="#filesystem">Filesystem</a> |
| 50 |
</li> |
| 51 |
<li> |
| 52 |
<a href="#persistent">Persistent</a> |
| 53 |
</li> |
| 54 |
<li> |
| 55 |
<a href="#environment">Environment</a> |
| 56 |
</li> |
| 57 |
<li> |
| 58 |
<a href="#system-bus">System Bus</a> |
| 59 |
</li> |
| 60 |
<li> |
| 61 |
<a href="#system-bus">Session Bus</a> |
| 62 |
</li> |
| 63 |
<li> |
| 64 |
<a href="#portals">Portals</a> |
| 65 |
</li> |
| 66 |
</ul> |
| 67 |
</li> |
| 68 |
<li> |
| 69 |
<a href="#tips-and-tricks">Tips and Tricks</a> |
| 70 |
<ul> |
| 71 |
<li> |
| 72 |
<a href="#manually-reset-flatseal-permissions">Manually reset Flatseal permissions</a> |
| 73 |
</li> |
| 74 |
<li> |
| 75 |
<a href="#add-new-translations">Add new translations</a> |
| 76 |
</li> |
| 77 |
<li> |
| 78 |
<a href="#enable-custom-installations">Enable custom installations</a> |
| 79 |
</li> |
| 80 |
<li> |
| 81 |
<a href="#use-custom-flatpak_user_dir">Use custom FLATPAK_USER_DIR</a> |
| 82 |
</li> |
| 83 |
</ul> |
| 84 |
</li> |
| 85 |
</ul> |
| 86 |
<h2 id="permissions">Permissions</h2> |
| 87 |
<p>This is the list of permissions supported by Flatseal. These descriptions are based on Flatpak’s <a href="https://docs.flatpak.org/en/latest/sandbox-permissions.html">official documentation</a> and extended with examples and references to make it easier for newcomers to understand.</p> |
| 88 |
<p>To summarize it, Flatpak provides two different permissions models: static and dynamic</p> |
| 89 |
<p>Static refers to the permissions set by the developers when applications are built. Static permissions are holes in the sandbox, e.g. an application built with <code>--filesystem=home</code> can access <em>all</em> user personal files. The benefit of this model is that developers can support Flatpak without any change in their applications code.</p> |
| 90 |
<p>Both Flatseal and <code>flatpak override</code> command-line tool, use the overrides backend to manage static permissions.</p> |
| 91 |
<p>Dynamic refers to the permissions granted by the users when applications run. Dynamic permissions rely on resource providers called <a href="https://github.com/flatpak/flatpak/wiki/Portals">Portals</a> and can require user confirmation, e.g. users can grant access to <em>one</em> specific file thanks to the <code>org.freedesktop.portal.FileChooser</code> portal. The benefit of this model is that users don’t need to trust applications with more resources than is strictly needed.</p> |
| 92 |
<p>Both Flatseal and <code>flatpak permissions</code> command-line tool, use the <code>org.freedesktop.impl.portal.PermissionStore</code> service to manage dynamic permissions.</p> |
| 93 |
<h3 id="share">Share</h3> |
| 94 |
<table> |
| 95 |
<colgroup> |
| 96 |
<col style="width: 25%" /> |
| 97 |
<col style="width: 25%" /> |
| 98 |
<col style="width: 25%" /> |
| 99 |
<col style="width: 25%" /> |
| 100 |
</colgroup> |
| 101 |
<thead> |
| 102 |
<tr class="header"> |
| 103 |
<th>Name</th> |
| 104 |
<th>Type</th> |
| 105 |
<th>Description</th> |
| 106 |
<th><code>flatpak override</code> equivalent</th> |
| 107 |
</tr> |
| 108 |
</thead> |
| 109 |
<tbody> |
| 110 |
<tr class="odd"> |
| 111 |
<td>Network</td> |
| 112 |
<td>Toggle</td> |
| 113 |
<td>Allow the application to have access to the network. <br /> <br /> For example, if it’s disabled for Firefox, it will no longer be possible to browse the internet with this application.</td> |
| 114 |
<td><code>--share=network</code> and <code>--unshare=network</code></td> |
| 115 |
</tr> |
| 116 |
<tr class="even"> |
| 117 |
<td><a href="https://en.wikipedia.org/wiki/Inter-process_communication">Inter-process communications</a></td> |
| 118 |
<td>Toggle</td> |
| 119 |
<td>Share IPC namespace with the host. <br /> <br /> This is required by X11 due to it depending on IPC.</td> |
| 120 |
<td><code>--share=ipc</code> and <code>--unshare=ipc</code></td> |
| 121 |
</tr> |
| 122 |
</tbody> |
| 123 |
</table> |
| 124 |
<h3 id="socket">Socket</h3> |
| 125 |
<table> |
| 126 |
<colgroup> |
| 127 |
<col style="width: 25%" /> |
| 128 |
<col style="width: 25%" /> |
| 129 |
<col style="width: 25%" /> |
| 130 |
<col style="width: 25%" /> |
| 131 |
</colgroup> |
| 132 |
<thead> |
| 133 |
<tr class="header"> |
| 134 |
<th>Name</th> |
| 135 |
<th>Type</th> |
| 136 |
<th>Description</th> |
| 137 |
<th><code>flatpak override</code> equivalent</th> |
| 138 |
</tr> |
| 139 |
</thead> |
| 140 |
<tbody> |
| 141 |
<tr class="odd"> |
| 142 |
<td>X11 windowing system</td> |
| 143 |
<td>Toggle</td> |
| 144 |
<td>Allow the application to open in an X11 window. <br /> <br /> Most applications use X11 for historical reasons, but is considered less secure.</td> |
| 145 |
<td><code>--socket=x11</code> and <code>--nosocket=x11</code></td> |
| 146 |
</tr> |
| 147 |
<tr class="even"> |
| 148 |
<td>Wayland windowing system</td> |
| 149 |
<td>Toggle</td> |
| 150 |
<td>Allow the application to open in a Wayland window. <br /> <br /> Many applications do not use Wayland as it is a newer display protocol unlike X11, and is considered more secure, but either some applications require extra steps to use it (see <a href="#environment">environment variables</a> example for Firefox), or do not support Wayland at all.</td> |
| 151 |
<td><code>--socket=wayland</code> and <code>--nosocket=wayland</code></td> |
| 152 |
</tr> |
| 153 |
<tr class="odd"> |
| 154 |
<td>Fallback to X11 windowing system</td> |
| 155 |
<td>Toggle</td> |
| 156 |
<td>Allow the application to open in an X11 window when Wayland is not available. This overrides the X11 windowing system option when enabled.</td> |
| 157 |
<td><code>--socket=fallback-x11</code> and <code>--nosocket=fallback-x11</code></td> |
| 158 |
</tr> |
| 159 |
<tr class="even"> |
| 160 |
<td>PulseAudio sound server</td> |
| 161 |
<td>Toggle</td> |
| 162 |
<td>Allow the application to play sounds or get access to the microphone when using PulseAudio. <br /> <br /> For example, if it’s disabled for Rhythmbox, it will no longer be possible to listen to the music with this application.</td> |
| 163 |
<td><code>--socket=pulseaudio</code> and <code>--nosocket=pulseaudio</code></td> |
| 164 |
</tr> |
| 165 |
<tr class="odd"> |
| 166 |
<td>D-Bus session bus</td> |
| 167 |
<td>Toggle</td> |
| 168 |
<td>Allow the application to have access to the entire session bus.</td> |
| 169 |
<td><code>--socket=session-dbus</code> and <code>--nosocket=session-dbus</code></td> |
| 170 |
</tr> |
| 171 |
<tr class="even"> |
| 172 |
<td>D-Bus system bus</td> |
| 173 |
<td>Toggle</td> |
| 174 |
<td>Allow the application to have access to the entire system bus.</td> |
| 175 |
<td><code>--socket=system-dbus</code> and <code>--nosocket=system-dbus</code></td> |
| 176 |
</tr> |
| 177 |
<tr class="odd"> |
| 178 |
<td>Secure Shell agent</td> |
| 179 |
<td>Toggle</td> |
| 180 |
<td>Allow the application to use SSH authentications.</td> |
| 181 |
<td><code>--socket=ssh-auth</code> and <code>--nosocket=ssh-auth</code></td> |
| 182 |
</tr> |
| 183 |
<tr class="even"> |
| 184 |
<td><a href="https://wiki.debian.org/Smartcards">Smart cards</a></td> |
| 185 |
<td>Toggle</td> |
| 186 |
<td>Allow the application to use smart cards.</td> |
| 187 |
<td><code>--socket=pcsc</code> and <code>--nosocket=pcsc</code></td> |
| 188 |
</tr> |
| 189 |
<tr class="odd"> |
| 190 |
<td>Printing system</td> |
| 191 |
<td>Toggle</td> |
| 192 |
<td>Allow the application to use printing systems. <br /> <br /> For example, if it’s disabled for LibreOffice, it will no longer be possible to print documents with this application.</td> |
| 193 |
<td><code>--socket=cups</code> and <code>--nosocket=cups</code></td> |
| 194 |
</tr> |
| 195 |
<tr class="even"> |
| 196 |
<td>GPG-Agent directories</td> |
| 197 |
<td>Toggle</td> |
| 198 |
<td>Allow the application to access GPG-Agent directories.</td> |
| 199 |
<td><code>--socket=gpg-agent</code> and <code>--nosocket=gpg-agent</code></td> |
| 200 |
</tr> |
| 201 |
<tr class="odd"> |
| 202 |
<td>Inherit Wayland socket</td> |
| 203 |
<td>Toggle</td> |
| 204 |
<td>Allow passing WAYLAND_SOCKET environment variable to the sandbox. <br /> <br /> For example, if it's disabled for Fcitx5, it won't be able to connect to Wayland and display its autocompletion dialogs.</td> |
| 205 |
<td><code>--socket=inherit-wayland-socket</code> and <code>--nosocket=inherit-wayland-socket</code></td> |
| 206 |
</tr> |
| 207 |
</tbody> |
| 208 |
</table> |
| 209 |
<h3 id="device">Device</h3> |
| 210 |
<table> |
| 211 |
<colgroup> |
| 212 |
<col style="width: 25%" /> |
| 213 |
<col style="width: 25%" /> |
| 214 |
<col style="width: 25%" /> |
| 215 |
<col style="width: 25%" /> |
| 216 |
</colgroup> |
| 217 |
<thead> |
| 218 |
<tr class="header"> |
| 219 |
<th>Name</th> |
| 220 |
<th>Type</th> |
| 221 |
<th>Description</th> |
| 222 |
<th><code>flatpak override</code> equivalent</th> |
| 223 |
</tr> |
| 224 |
</thead> |
| 225 |
<tbody> |
| 226 |
<tr class="odd"> |
| 227 |
<td>GPU acceleration</td> |
| 228 |
<td>Toggle</td> |
| 229 |
<td>Allow the application to access the graphics direct rendering to take advantage of GPU acceleration.</td> |
| 230 |
<td><code>--device=dri</code> and <code>--nodevice=dri</code></td> |
| 231 |
</tr> |
| 232 |
<tr class="even"> |
| 233 |
<td>Input devices</td> |
| 234 |
<td>Toggle</td> |
| 235 |
<td>Allow input device access. <br /> <br /> Note that raw and virtual input devices could still require <a href="#device">All devices</a></td> |
| 236 |
<td><code>--device=input</code> and <code>--nodevice=input</code></td> |
| 237 |
</tr> |
| 238 |
<tr class="odd"> |
| 239 |
<td>Virtualization</td> |
| 240 |
<td>Toggle</td> |
| 241 |
<td>Allow the application to support virtualization.</td> |
| 242 |
<td><code>--device=kvm</code> and <code>--nodevice=kvm</code></td> |
| 243 |
</tr> |
| 244 |
<tr class="even"> |
| 245 |
<td>Shared memory</td> |
| 246 |
<td>Toggle</td> |
| 247 |
<td>Allow the application to access shared memory.</td> |
| 248 |
<td><code>--device=shm</code> and <code>--nodevice=shm</code></td> |
| 249 |
</tr> |
| 250 |
<tr class="odd"> |
| 251 |
<td>USB devices</td> |
| 252 |
<td>Toggle</td> |
| 253 |
<td>Allow raw USB device access.</td> |
| 254 |
<td><code>--device=usb</code> and <code>--nodevice=usb</code></td> |
| 255 |
</tr> |
| 256 |
<tr class="even"> |
| 257 |
<td>All devices</td> |
| 258 |
<td>Toggle</td> |
| 259 |
<td>Allow the application to access all devices, such as webcam and external devices. <br /> <br /> For example, if it’s disabled for Element, it will no longer be possible to do video calls with this application.</td> |
| 260 |
<td><code>--device=all</code> and <code>--nodevice=all</code></td> |
| 261 |
</tr> |
| 262 |
</tbody> |
| 263 |
</table> |
| 264 |
<h3 id="allow">Allow</h3> |
| 265 |
<table> |
| 266 |
<colgroup> |
| 267 |
<col style="width: 25%" /> |
| 268 |
<col style="width: 25%" /> |
| 269 |
<col style="width: 25%" /> |
| 270 |
<col style="width: 25%" /> |
| 271 |
</colgroup> |
| 272 |
<thead> |
| 273 |
<tr class="header"> |
| 274 |
<th>Name</th> |
| 275 |
<th>Type</th> |
| 276 |
<th>Description</th> |
| 277 |
<th><code>flatpak override</code> equivalent</th> |
| 278 |
</tr> |
| 279 |
</thead> |
| 280 |
<tbody> |
| 281 |
<tr class="odd"> |
| 282 |
<td>Development syscalls</td> |
| 283 |
<td>Toggle</td> |
| 284 |
<td>Allow the application to access to certain syscalls, such as <a href="https://en.wikipedia.org/wiki/Ptrace"><code>ptrace()</code></a> and <a href="https://en.wikipedia.org/wiki/Perf_(Linux)"><code>perf_event_open()</code></a>.</td> |
| 285 |
<td><code>--allow=devel</code> and <code>--disallow=devel</code></td> |
| 286 |
</tr> |
| 287 |
<tr class="even"> |
| 288 |
<td>Programs from other architectures</td> |
| 289 |
<td>Toggle</td> |
| 290 |
<td>Allow the application to execute programs for an <a href="https://en.wikipedia.org/wiki/Application_binary_interface">ABI</a> other than the one supported natively by the system.</td> |
| 291 |
<td><code>--allow=multiarch</code> and <code>--disallow=multiarch</code></td> |
| 292 |
</tr> |
| 293 |
<tr class="odd"> |
| 294 |
<td>Bluetooth</td> |
| 295 |
<td>Toggle</td> |
| 296 |
<td>Allow the application to use Bluetooth.</td> |
| 297 |
<td><code>--allow=bluetooth</code> and <code>--disallow=bluetooth</code></td> |
| 298 |
</tr> |
| 299 |
<tr class="even"> |
| 300 |
<td>Controller Area Network bus</td> |
| 301 |
<td>Toggle</td> |
| 302 |
<td>Allow the application to use canbus sockets. You must also have <a href="#share">network access</a> for this to work.</td> |
| 303 |
<td><code>--allow=canbus</code> and <code>--disallow=canbus</code></td> |
| 304 |
</tr> |
| 305 |
<tr class="odd"> |
| 306 |
<td>Application Shared Memory</td> |
| 307 |
<td>Toggle</td> |
| 308 |
<td>Allow the application to share its /dev/shm between instances of the same $FLATPAK_APP_ID. Introduced specifically for the Steam flatpak, to share its /dev/shm with sub-sandboxed games.</td> |
| 309 |
<td><code>--allow=per-app-dev-shm</code> and <code>--disallow=per-app-dev-shm</code></td> |
| 310 |
</tr> |
| 311 |
</tbody> |
| 312 |
</table> |
| 313 |
<h3 id="filesystem">Filesystem</h3> |
| 314 |
<table> |
| 315 |
<colgroup> |
| 316 |
<col style="width: 25%" /> |
| 317 |
<col style="width: 25%" /> |
| 318 |
<col style="width: 25%" /> |
| 319 |
<col style="width: 25%" /> |
| 320 |
</colgroup> |
| 321 |
<thead> |
| 322 |
<tr class="header"> |
| 323 |
<th>Name</th> |
| 324 |
<th>Type</th> |
| 325 |
<th>Description</th> |
| 326 |
<th><code>flatpak override</code> equivalent</th> |
| 327 |
</tr> |
| 328 |
</thead> |
| 329 |
<tbody> |
| 330 |
<tr class="odd"> |
| 331 |
<td>All filesystem files</td> |
| 332 |
<td>Toggle</td> |
| 333 |
<td>Allow read-write access to the whole filesystem. Everything that isn’t writeable by the user will be read-only</td> |
| 334 |
<td><code>--filesystem=host</code> and <code>--nofilesystem=host</code></td> |
| 335 |
</tr> |
| 336 |
<tr class="even"> |
| 337 |
<td>All system libraries, executables and static data</td> |
| 338 |
<td>Toggle</td> |
| 339 |
<td>Allow read-write access to system libraries located in <code>/usr</code>. Since this directory requires root access to write, the permission will be read-only.</td> |
| 340 |
<td><code>--filesystem=host-os</code> and <code>--nofilesystem=host-os</code></td> |
| 341 |
</tr> |
| 342 |
<tr class="odd"> |
| 343 |
<td>All system configurations</td> |
| 344 |
<td>Toggle</td> |
| 345 |
<td>Allow read-write access to system configurations located in <code>/etc</code>. Since this directory requires root access to write, the permission will be read-only.</td> |
| 346 |
<td><code>--filesystem=host-etc</code> and <code>--nofilesystem=host-etc</code></td> |
| 347 |
</tr> |
| 348 |
<tr class="even"> |
| 349 |
<td>All user files</td> |
| 350 |
<td>Toggle</td> |
| 351 |
<td>Allow read-write access to the user directory (<code>$HOME</code> or <code>~/</code>).</td> |
| 352 |
<td><code>--filesystem=home</code> and <code>--nofilesystem=home</code></td> |
| 353 |
</tr> |
| 354 |
<tr class="odd"> |
| 355 |
<td>Other files</td> |
| 356 |
<td>Input</td> |
| 357 |
<td>Allow read-write access to the directory you desire. <br /> <br /> For example, you would put <code>~/games</code> if you want read-write access to <code>~/games</code>. If you want read-only access to <code>~/games</code>, then you would put <code>~/games:ro</code>.</td> |
| 358 |
<td><code>--filesystem=[PATH]</code>, <code>--filesystem=[PATH]:ro</code> and <code>--nofilesystem=[PATH]</code></td> |
| 359 |
</tr> |
| 360 |
</tbody> |
| 361 |
</table> |
| 362 |
<h3 id="persistent">Persistent</h3> |
| 363 |
<table> |
| 364 |
<colgroup> |
| 365 |
<col style="width: 25%" /> |
| 366 |
<col style="width: 25%" /> |
| 367 |
<col style="width: 25%" /> |
| 368 |
<col style="width: 25%" /> |
| 369 |
</colgroup> |
| 370 |
<thead> |
| 371 |
<tr class="header"> |
| 372 |
<th>Name</th> |
| 373 |
<th>Type</th> |
| 374 |
<th>Description</th> |
| 375 |
<th><code>flatpak-override</code> equivalent</th> |
| 376 |
</tr> |
| 377 |
</thead> |
| 378 |
<tbody> |
| 379 |
<tr class="odd"> |
| 380 |
<td>Files</td> |
| 381 |
<td>Input</td> |
| 382 |
<td>Allow the application to access the targeted directory while restricting other applications from accessing it. <br /> <br /> Starting from the user directory (<code>$HOME</code> or <code>~/</code>), the targeted directory will be remapped to the application’s directory (<code>~/.var/app/$FLATPAK_APP_ID/[PATH]</code>) if it has no write access to the targeted directory. <br /> <br /> For example, persisting <code>.mozilla</code> will map <code>~/.mozilla</code> to <code>~/.var/app/org.mozilla.Firefox/.mozilla</code>. <br /> <br /> This is also a technique used to declutter the user directory, as it prevents the application from writing to <code>~/</code>.</td> |
| 383 |
<td><code>--persist=[PATH]</code></td> |
| 384 |
</tr> |
| 385 |
</tbody> |
| 386 |
</table> |
| 387 |
<h3 id="environment">Environment</h3> |
| 388 |
<table> |
| 389 |
<colgroup> |
| 390 |
<col style="width: 25%" /> |
| 391 |
<col style="width: 25%" /> |
| 392 |
<col style="width: 25%" /> |
| 393 |
<col style="width: 25%" /> |
| 394 |
</colgroup> |
| 395 |
<thead> |
| 396 |
<tr class="header"> |
| 397 |
<th>Name</th> |
| 398 |
<th>Type</th> |
| 399 |
<th>Description</th> |
| 400 |
<th><code>flatpak override</code> equivalent</th> |
| 401 |
</tr> |
| 402 |
</thead> |
| 403 |
<tbody> |
| 404 |
<tr class="odd"> |
| 405 |
<td>Variables</td> |
| 406 |
<td>Input</td> |
| 407 |
<td>Set an environment variable in the application to make the variable available to application when it runs. <br /> <br /> For example, adding <code>MOZ_ENABLE_WAYLAND=1</code> for Firefox to enable the Wayland back-end.</td> |
| 408 |
<td><code>--env=[VAR]=[VALUE]</code></td> |
| 409 |
</tr> |
| 410 |
</tbody> |
| 411 |
</table> |
| 412 |
<h3 id="system-bus">System Bus</h3> |
| 413 |
<table> |
| 414 |
<colgroup> |
| 415 |
<col style="width: 25%" /> |
| 416 |
<col style="width: 25%" /> |
| 417 |
<col style="width: 25%" /> |
| 418 |
<col style="width: 25%" /> |
| 419 |
</colgroup> |
| 420 |
<thead> |
| 421 |
<tr class="header"> |
| 422 |
<th>Name</th> |
| 423 |
<th>Type</th> |
| 424 |
<th>Description</th> |
| 425 |
<th><code>flatpak override</code> equivalent</th> |
| 426 |
</tr> |
| 427 |
</thead> |
| 428 |
<tbody> |
| 429 |
<tr class="odd"> |
| 430 |
<td>Talks</td> |
| 431 |
<td>Input</td> |
| 432 |
<td>Allow the application to talk to system services. <br /> <br /> For example, adding <code>org.freedesktop.Accounts</code> will allow the application to access users login history.</td> |
| 433 |
<td><code>--system-talk-name=[NAME]</code></td> |
| 434 |
</tr> |
| 435 |
<tr class="even"> |
| 436 |
<td>Owns</td> |
| 437 |
<td>Input</td> |
| 438 |
<td>Allow the application to own system services under the given name.</td> |
| 439 |
<td><code>--system-own-name=[NAME]</code></td> |
| 440 |
</tr> |
| 441 |
</tbody> |
| 442 |
</table> |
| 443 |
<h3 id="session-bus">Session Bus</h3> |
| 444 |
<table> |
| 445 |
<colgroup> |
| 446 |
<col style="width: 25%" /> |
| 447 |
<col style="width: 25%" /> |
| 448 |
<col style="width: 25%" /> |
| 449 |
<col style="width: 25%" /> |
| 450 |
</colgroup> |
| 451 |
<thead> |
| 452 |
<tr class="header"> |
| 453 |
<th>Name</th> |
| 454 |
<th>Type</th> |
| 455 |
<th>Description</th> |
| 456 |
<th><code>flatpak override</code> equivalent</th> |
| 457 |
</tr> |
| 458 |
</thead> |
| 459 |
<tbody> |
| 460 |
<tr class="odd"> |
| 461 |
<td>Talks</td> |
| 462 |
<td>Input</td> |
| 463 |
<td>Allow the application to talk to session services. <br /> <br /> For example, adding <code>org.freedesktop.Notifications</code> will allow the application to send notifications.</td> |
| 464 |
<td><code>--talk-name=[NAME]</code></td> |
| 465 |
</tr> |
| 466 |
<tr class="even"> |
| 467 |
<td>Owns</td> |
| 468 |
<td>Input</td> |
| 469 |
<td>Allow the application to own session services under the given name.</td> |
| 470 |
<td><code>--own-name=[NAME]</code></td> |
| 471 |
</tr> |
| 472 |
</tbody> |
| 473 |
</table> |
| 474 |
<h3 id="portals">Portals</h3> |
| 475 |
<table> |
| 476 |
<colgroup> |
| 477 |
<col style="width: 25%" /> |
| 478 |
<col style="width: 25%" /> |
| 479 |
<col style="width: 25%" /> |
| 480 |
<col style="width: 25%" /> |
| 481 |
</colgroup> |
| 482 |
<thead> |
| 483 |
<tr class="header"> |
| 484 |
<th>Name</th> |
| 485 |
<th>Type</th> |
| 486 |
<th>Description</th> |
| 487 |
<th>Portal</th> |
| 488 |
</tr> |
| 489 |
</thead> |
| 490 |
<tbody> |
| 491 |
<tr class="odd"> |
| 492 |
<td>Background</td> |
| 493 |
<td>Toggle</td> |
| 494 |
<td>Allow the application to run in the background.</td> |
| 495 |
<td><code>org.freedesktop.portal.Background</code></td> |
| 496 |
</tr> |
| 497 |
<tr class="even"> |
| 498 |
<td>Notifications</td> |
| 499 |
<td>Toggle</td> |
| 500 |
<td>Allow the application to send notifications.</td> |
| 501 |
<td><code>org.freedesktop.portal.Notification</code></td> |
| 502 |
</tr> |
| 503 |
<tr class="odd"> |
| 504 |
<td>Microphone</td> |
| 505 |
<td>Toggle</td> |
| 506 |
<td>Allow the application to listen to your microphone.</td> |
| 507 |
<td><code>org.freedesktop.portal.Device</code></td> |
| 508 |
</tr> |
| 509 |
<tr class="even"> |
| 510 |
<td>Speakers</td> |
| 511 |
<td>Toggle</td> |
| 512 |
<td>Allow the application to play sounds to your speakers.</td> |
| 513 |
<td><code>org.freedesktop.portal.Device</code></td> |
| 514 |
</tr> |
| 515 |
<tr class="odd"> |
| 516 |
<td>Camera</td> |
| 517 |
<td>Toggle</td> |
| 518 |
<td>Allow the application to record videos with your camera.</td> |
| 519 |
<td><code>org.freedesktop.portal.Device</code></td> |
| 520 |
</tr> |
| 521 |
<tr class="even"> |
| 522 |
<td>Location</td> |
| 523 |
<td>Toggle</td> |
| 524 |
<td>Allow the application to access your location data.</td> |
| 525 |
<td><code>org.freedesktop.portal.Location</code></td> |
| 526 |
</tr> |
| 527 |
</tbody> |
| 528 |
</table> |
| 529 |
<h2 id="tips-and-tricks">Tips and Tricks</h2> |
| 530 |
<h3 id="manually-reset-flatseal-permissions">Manually reset Flatseal permissions</h3> |
| 531 |
<p>If permissions are removed and is no longer possible to reset, run the following command from the terminal and re-start Flatseal:</p> |
| 532 |
<pre><code>$ rm ~/.local/share/flatpak/overrides/com.github.tchx84.Flatseal</code></pre> |
| 533 |
<h3 id="add-new-translations">Add new translations</h3> |
| 534 |
<p>Add a new language and update translations:</p> |
| 535 |
<pre><code>$ git clone https://github.com/tchx84/Flatseal.git |
| 536 |
$ cd Flatseal |
| 537 |
$ echo "es" >> po/LINGUAS # es for Spanish |
| 538 |
$ meson _translate && cd _translate |
| 539 |
$ ninja flatseal-pot |
| 540 |
$ ninja flatseal-update-po |
| 541 |
$ gedit ../po/es.po # translate the strings to Spanish</code></pre> |
| 542 |
<p>To test the translation language:</p> |
| 543 |
<pre><code>$ flatpak config --set languages es |
| 544 |
$ flatpak update org.gnome.Platform |
| 545 |
$ LC_ALL=es_PY.UTF-8 flatpak run com.github.tchx84.Flatseal</code></pre> |
| 546 |
<h3 id="enable-custom-installations">Enable custom installations</h3> |
| 547 |
<p>To enable a custom installation, e.g, <code>/xusr/custom/flatpak</code>.</p> |
| 548 |
<h4 id="flatpak-1.7.1-or-newer">Flatpak 1.7.1 or newer</h4> |
| 549 |
<ol type="1"> |
| 550 |
<li>Launch Flatseal and select it to edit its own permissions.</li> |
| 551 |
<li>Enable <code>host-etc</code>, or type in <code>host-etc:ro</code> in the other option.</li> |
| 552 |
<li>Type in the custom installation path, e.g, <code>/xusr/custom/flatpak:ro</code>.</li> |
| 553 |
<li>Restart Flatseal.</li> |
| 554 |
</ol> |
| 555 |
<h4 id="all-versions">All versions</h4> |
| 556 |
<ol type="1"> |
| 557 |
<li>Launch Flatseal and select it to edit its own permissions.</li> |
| 558 |
<li>Enable <code>host</code>, or type in <code>host:ro</code> in the other option.</li> |
| 559 |
<li>Restart Flatseal.</li> |
| 560 |
</ol> |
| 561 |
<p><strong>NOTE</strong>: To find these installations, Flatseal needs access to <code>/etc/flatpak/installations.d</code>. Before Flatpak 1.7.1, accessing the host <code>/etc</code> required the <code>host</code> permission, which was an all-or-nothing situation. By default, Flatseal will have minimal permissions, so it’s up to the user to decide to enable this feature.</p> |
| 562 |
<h3 id="use-custom-flatpak_user_dir">Use custom FLATPAK_USER_DIR</h3> |
| 563 |
<p>To use a custom <code>FLATPAK_USER_DIR</code>, e.g. <code>/var/home/user/.flatpak</code>.</p> |
| 564 |
<pre><code>flatpak --user override --filesystem=/var/home/user/.flatpak --env=FLATPAK_USER_DIR=/var/home/user/.flatpak com.github.tchx84.Flatseal</code></pre> |
| 565 |
<p><strong>NOTE</strong>: By default, <code>FLATPAK_USER_DIR</code> is not accessible from within the Flatpak sandbox, and Flatseal has no access to custom directories. Therefore, these overrides are needed.</p> |
| 566 |
</body> |
| 567 |
</html> |