From f5248ec91c44c5ff9f9eaa069e0715fd118aa42b Mon Sep 17 00:00:00 2001 From: Seungmin Kim <8457324+ehfd@users.noreply.github.com> Date: Fri, 26 Jul 2024 19:01:20 +0900 Subject: [PATCH] KDE environment variables --- Dockerfile | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/Dockerfile b/Dockerfile index d9f3a37..865dee8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -308,24 +308,6 @@ RUN cd /tmp && VIRTUALGL_VERSION="$(curl -fsSL "https://api.github.com/repos/Vir # Anything below this line should always be kept the same between docker-nvidia-glx-desktop and docker-nvidia-egl-desktop # Install KDE and other GUI packages -ENV DESKTOP_SESSION=plasma -ENV XDG_SESSION_DESKTOP=KDE -ENV XDG_CURRENT_DESKTOP=KDE -ENV XDG_SESSION_TYPE=x11 -ENV KDE_FULL_SESSION=true -ENV KDE_SESSION_VERSION=5 -ENV KDE_APPLICATIONS_AS_SCOPE=1 -ENV KWIN_COMPOSE=N -ENV KWIN_X11_NO_SYNC_TO_VBLANK=1 -# Use sudoedit to change protected files instead of using sudo on kwrite -ENV SUDO_EDITOR=kwrite -# Set input to fcitx -ENV GTK_IM_MODULE=fcitx -ENV QT_IM_MODULE=fcitx -ENV XIM=fcitx -ENV XMODIFIERS="@im=fcitx" -# Enable AppImage execution in containers -ENV APPIMAGE_EXTRACT_AND_RUN=1 RUN mkdir -pm755 /etc/apt/preferences.d && echo "Package: firefox*\n\ Pin: version 1:1snap*\n\ Pin-Priority: -1" > /etc/apt/preferences.d/firefox-nosnap && \ @@ -449,6 +431,7 @@ Pin-Priority: -1" > /etc/apt/preferences.d/firefox-nosnap && \ vlc-plugin-video-splitter \ vlc-plugin-visualization \ xdg-user-dirs \ + xdg-utils \ firefox \ transmission-qt && \ apt-get install --install-recommends -y \ @@ -457,6 +440,7 @@ Pin-Priority: -1" > /etc/apt/preferences.d/firefox-nosnap && \ libreoffice-plasma \ libreoffice-style-breeze && \ # Ensure Firefox as the default web browser + xdg-settings set default-web-browser firefox.desktop && \ update-alternatives --set x-www-browser /usr/bin/firefox && \ # Install Google Chrome for supported architectures if [ "$(dpkg --print-architecture)" = "amd64" ]; then cd /tmp && curl -o google-chrome-stable.deb -fsSL "https://dl.google.com/linux/direct/google-chrome-stable_current_$(dpkg --print-architecture).deb" && apt-get update && apt-get install --no-install-recommends -y ./google-chrome-stable.deb && rm -f google-chrome-stable.deb && sed -i '/^Exec=/ s/$/ --password-store=basic --in-process-gpu/' /usr/share/applications/google-chrome.desktop; fi && \ @@ -480,6 +464,25 @@ logout=false\n\ \n\ [General]\n\ BrowserApplication=firefox.desktop" > /etc/xdg/kdeglobals +# KDE environment variables +ENV DESKTOP_SESSION=plasma +ENV XDG_SESSION_DESKTOP=KDE +ENV XDG_CURRENT_DESKTOP=KDE +ENV XDG_SESSION_TYPE=x11 +ENV KDE_FULL_SESSION=true +ENV KDE_SESSION_VERSION=5 +ENV KDE_APPLICATIONS_AS_SCOPE=1 +ENV KWIN_COMPOSE=N +ENV KWIN_X11_NO_SYNC_TO_VBLANK=1 +# Use sudoedit to change protected files instead of using sudo on kwrite +ENV SUDO_EDITOR=kwrite +# Enable AppImage execution in containers +ENV APPIMAGE_EXTRACT_AND_RUN=1 +# Set input to fcitx +ENV GTK_IM_MODULE=fcitx +ENV QT_IM_MODULE=fcitx +ENV XIM=fcitx +ENV XMODIFIERS="@im=fcitx" # Wine, Winetricks, and launchers, this process must be consistent with https://wiki.winehq.org/Ubuntu ARG WINE_BRANCH=staging