Firejail + Chromium (a handy little script)

Discussion in 'all things UNIX' started by Jan42, Apr 27, 2018.

  1. Jan42

    Jan42 Registered Member

    Joined:
    Feb 9, 2016
    Posts:
    11
    I've found an interesting little script. I can't take credit for it, but it is unclear to me who the author is.
    I will enclose the original url I have found it on. It will also explain what the script does.
    Original website I found it on:
    http://blog.jdevelop.com/software/linux/2017/09/09/firejail.html

    Code:
    #!/bin/bash
    
    PID=`firejail --list | grep chromium | awk -F ':' '{print $1;}'`
    ARGS="--force-device-scale-factor=1.8"
    
    if [ 'X'$PID = 'X' ];
    then
        firejail chromium $ARGS $*
    else
        firejail --join="$PID" chromium $ARGS $*
    fi
    Maybe it is useful for someone to integrate it into a more elaborate script?
     
  2. summerheat

    summerheat Registered Member

    Joined:
    May 16, 2015
    Posts:
    2,199
    I don't see why this script should be necessary. Just execute sudo firecfg and all is well.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.