mirror of
https://github.com/kasmtech/workspaces-images.git
synced 2025-02-24 22:01:01 +01:00
Merge branch 'feature/KASM-1420_build_restricted_file_chooser_gtk' into 'develop'
Resolve KASM-1420 "Feature/ build restricted file chooser gtk" Closes KASM-1420 See merge request kasm-technologies/internal/workspaces-images!2
This commit is contained in:
commit
344ef797ff
@ -25,6 +25,10 @@ ENV LAUNCH_URL http://kasmweb.com
|
||||
COPY ./src/ubuntu/install/brave/custom_startup.sh $STARTUPDIR/custom_startup.sh
|
||||
RUN chmod +x $STARTUPDIR/custom_startup.sh
|
||||
|
||||
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
|
||||
@ -35,4 +39,3 @@ WORKDIR $HOME
|
||||
RUN mkdir -p $HOME && chown -R 1000:0 $HOME
|
||||
|
||||
USER 1000
|
||||
|
||||
|
@ -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 ###########
|
||||
|
@ -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 ###########
|
||||
|
||||
|
@ -19,6 +19,10 @@ RUN cp $HOME/.config/xfce4/xfconf/single-application-xfce-perchannel-xml/* $HOME
|
||||
RUN cp /usr/share/extra/backgrounds/bg_kasm.png /usr/share/extra/backgrounds/bg_default.png
|
||||
RUN apt-get remove -y xfce4-panel
|
||||
|
||||
ENV KASM_RESTRICTED_FILE_CHOOSER=1
|
||||
COPY ./src/ubuntu/install/gtk/ $INST_SCRIPTS/gtk/
|
||||
RUN $INST_SCRIPTS/gtk/install_restricted_file_chooser.sh
|
||||
|
||||
# Setup the custom startup script that will be invoked when the container starts
|
||||
ENV LAUNCH_URL http://kasmweb.com
|
||||
|
||||
|
@ -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 ###########
|
||||
|
||||
|
@ -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
|
||||
|
@ -19,6 +19,10 @@ RUN cp $HOME/.config/xfce4/xfconf/single-application-xfce-perchannel-xml/* $HOME
|
||||
RUN cp /usr/share/extra/backgrounds/bg_kasm.png /usr/share/extra/backgrounds/bg_default.png
|
||||
RUN apt-get remove -y xfce4-panel
|
||||
|
||||
ENV KASM_RESTRICTED_FILE_CHOOSER=1
|
||||
COPY ./src/ubuntu/install/gtk/ $INST_SCRIPTS/gtk/
|
||||
RUN $INST_SCRIPTS/gtk/install_restricted_file_chooser.sh
|
||||
|
||||
# Setup the custom startup script that will be invoked when the container starts
|
||||
ENV LAUNCH_URL about:blank
|
||||
RUN echo $' \n\
|
||||
|
@ -10,3 +10,5 @@ This Image contains a browser-accessible version of [Brave](https://brave.com/).
|
||||
|
||||
* `LAUNCH_URL` - The default URL the browser launches to when created.
|
||||
* `APP_ARGS` - Additional arguments to pass to the browser when launched.
|
||||
* `KASM_RESTRICTED_FILE_CHOOSER` - Confine "File Upload" and "File Save"
|
||||
dialogs to ~/Desktop. On by default.
|
||||
|
@ -10,3 +10,5 @@ This Image contains a browser-accessible version of [Google Chrome](https://www.
|
||||
|
||||
* `LAUNCH_URL` - The default URL the browser launches to when created.
|
||||
* `APP_ARGS` - Additional arguments to pass to the browser when launched.
|
||||
* `KASM_RESTRICTED_FILE_CHOOSER` - Confine "File Upload" and "File Save"
|
||||
dialogs to ~/Desktop. On by default.
|
||||
|
@ -10,3 +10,5 @@ This Image contains a browser-accessible version of [Microsoft Edge Insider Prev
|
||||
|
||||
* `LAUNCH_URL` - The default URL the browser launches to when created.
|
||||
* `APP_ARGS` - Additional arguments to pass to the browser when launched.
|
||||
* `KASM_RESTRICTED_FILE_CHOOSER` - Confine "File Upload" and "File Save"
|
||||
dialogs to ~/Desktop. On by default.
|
||||
|
@ -10,3 +10,5 @@ This Image contains a browser-accessible version of [Mozilla Firefox](https://ww
|
||||
|
||||
* `LAUNCH_URL` - The default URL the browser launches to when created.
|
||||
* `APP_ARGS` - Additional arguments to pass to the browser when launched.
|
||||
* `KASM_RESTRICTED_FILE_CHOOSER` - Confine "File Upload" and "File Save"
|
||||
dialogs to ~/Desktop. On by default.
|
||||
|
@ -8,4 +8,6 @@ This Image contains a browser-accessible version of [Tor Browser](https://www.to
|
||||
|
||||
# Environment Variables
|
||||
|
||||
* `APP_ARGS` - Additional arguments to pass to the application when launched.
|
||||
* `APP_ARGS` - Additional arguments to pass to the application when launched.
|
||||
* `KASM_RESTRICTED_FILE_CHOOSER` - Confine "File Upload" and "File Save"
|
||||
dialogs to ~/Desktop. On by default.
|
||||
|
9
src/ubuntu/install/gtk/install_restricted_file_chooser.sh
Executable file
9
src/ubuntu/install/gtk/install_restricted_file_chooser.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
libgtk_deb=libgtk.deb
|
||||
|
||||
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"
|
||||
rm "$libgtk_deb"
|
Loading…
Reference in New Issue
Block a user