Firefox and Chrome (+flash) images use locked down file chooser

This commit is contained in:
Dmitry Maksyoma 2021-07-09 00:55:06 +12:00
parent 15fcbb033a
commit 14c7fca7b9
5 changed files with 20 additions and 0 deletions

View File

@ -29,6 +29,9 @@ RUN chmod +x $STARTUPDIR/custom_startup.sh
# COPY ./src/ubuntu/install/certificates $INST_SCRIPTS/certificates/
# RUN bash $INST_SCRIPTS/certificates/install_ca_cert.sh && rm -rf $INST_SCRIPTS/certificates/
ENV KASM_RESTRICTED_FILE_CHOOSER=1
COPY ./src/ubuntu/install/gtk/ $INST_SCRIPTS/gtk/
RUN $INST_SCRIPTS/gtk/install_restricted_file_chooser.sh
######### End Customizations ###########

View File

@ -29,6 +29,10 @@ RUN chmod +x $STARTUPDIR/custom_startup.sh
COPY ./src/ubuntu/install/chrome_flash $INST_SCRIPTS/chrome_flash/
RUN bash $INST_SCRIPTS/chrome_flash/install_flash.sh && rm -rf $INST_SCRIPTS/chrome_flash/
ENV KASM_RESTRICTED_FILE_CHOOSER=1
COPY ./src/ubuntu/install/gtk/ $INST_SCRIPTS/gtk/
RUN $INST_SCRIPTS/gtk/install_restricted_file_chooser.sh
######### End Customizations ###########

View File

@ -29,6 +29,9 @@ RUN chmod +x $STARTUPDIR/custom_startup.sh
# COPY ./src/ubuntu/install/certificates $INST_SCRIPTS/certificates/
# RUN bash $INST_SCRIPTS/certificates/install_ca_cert.sh && rm -rf $INST_SCRIPTS/certificates/
ENV KASM_RESTRICTED_FILE_CHOOSER=1
COPY ./src/ubuntu/install/gtk/ $INST_SCRIPTS/gtk/
RUN $INST_SCRIPTS/gtk/install_restricted_file_chooser.sh
######### End Customizations ###########

View File

@ -28,6 +28,10 @@ RUN chmod +x $STARTUPDIR/custom_startup.sh
COPY ./src/ubuntu/install/firefox_flash $INST_SCRIPTS/firefox_flash/
RUN bash $INST_SCRIPTS/firefox_flash/install_flash.sh && rm -rf $INST_SCRIPTS/firefox_flash/
ENV KASM_RESTRICTED_FILE_CHOOSER=1
COPY ./src/ubuntu/install/gtk/ $INST_SCRIPTS/gtk/
RUN $INST_SCRIPTS/gtk/install_restricted_file_chooser.sh
######### End Customizations ###########
RUN chown 1000:0 $HOME

View File

@ -0,0 +1,6 @@
#!/bin/bash
set -e
wget https://kasmweb-build-artifacts.s3.amazonaws.com/kasm-gtk-3-restricted-file-chooser/de486e8c3c5f3d3c0f898fb9d6e05755897b1970/output/libgtk-3-0_3.22.30-1ubuntu4_amd64.deb -O libgtk.deb
apt-get install -y --allow-downgrades ./libgtk.deb