-
Notifications
You must be signed in to change notification settings - Fork 459
feat(desktop-lite): make fluxbox optional #1058
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
phorcys420
wants to merge
8
commits into
devcontainers:main
Choose a base branch
from
phorcys420-contrib:desktop-lite-no-fluxbox
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
9942b51
feat(desktop-lite): make fluxbox optional
phorcys420 a0b637a
Merge branch 'devcontainers:main' into desktop-lite-no-fluxbox
phorcys420 e7d45de
feat(desktop-lite): add test scenarios
phorcys420 657c7cf
chore: remove space in `install.sh`
phorcys420 1c50d70
chore: clarify README.md
phorcys420 3d1e9fd
chore: fix incorrect capitalization in NOTES.md
phorcys420 08150ac
Merge branch 'main' into desktop-lite-no-fluxbox
phorcys420 eff89e7
chore: bump desktop-lite version to 1.2.4
phorcys420 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -17,13 +17,13 @@ VNC_PORT="${VNCPORT:-5901}" | |||||
|
||||||
INSTALL_NOVNC="${INSTALL_NOVNC:-"true"}" | ||||||
USERNAME="${USERNAME:-"${_REMOTE_USER:-"automatic"}"}" | ||||||
INSTALL_FLUXBOX="${INSTALLFLUXBOX:-"true"}" | ||||||
|
||||||
WEBSOCKETIFY_VERSION=0.10.0 | ||||||
|
||||||
package_list=" | ||||||
tigervnc-standalone-server \ | ||||||
tigervnc-common \ | ||||||
fluxbox \ | ||||||
dbus-x11 \ | ||||||
x11-utils \ | ||||||
x11-xserver-utils \ | ||||||
|
@@ -88,6 +88,7 @@ if [ "${USERNAME}" = "auto" ] || [ "${USERNAME}" = "automatic" ]; then | |||||
elif [ "${USERNAME}" = "none" ] || ! id -u ${USERNAME} > /dev/null 2>&1; then | ||||||
USERNAME=root | ||||||
fi | ||||||
|
||||||
# Add default Fluxbox config files if none are already present | ||||||
fluxbox_apps="$(cat \ | ||||||
<< 'EOF' | ||||||
|
@@ -197,7 +198,12 @@ else | |||||
package_list="${package_list} tilix" | ||||||
fi | ||||||
|
||||||
# Install X11, fluxbox and VS Code dependencies | ||||||
# If we want to install Fluxbox, then add it to the list of pacakges | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
if [ "${INSTALL_FLUXBOX}" = "true" ]; then | ||||||
package_list="${package_list} fluxbox" | ||||||
fi | ||||||
|
||||||
# Install X11 and VS Code dependencies | ||||||
check_packages ${package_list} | ||||||
|
||||||
# if Ubuntu-24.04, noble(numbat) found, then will install libasound2-dev instead of libasound2. | ||||||
|
@@ -377,7 +383,7 @@ screen_geometry="\${VNC_RESOLUTION%*x*}" | |||||
screen_depth="\${VNC_RESOLUTION##*x}" | ||||||
|
||||||
# Check if VNC_PASSWORD is set and use the appropriate command | ||||||
common_options="tigervncserver \${DISPLAY} -geometry \${screen_geometry} -depth \${screen_depth} -rfbport ${VNC_PORT} -dpi \${VNC_DPI:-96} -localhost -desktop fluxbox -fg" | ||||||
samruddhikhandale marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
common_options="tigervncserver \${DISPLAY} -geometry \${screen_geometry} -depth \${screen_depth} -rfbport ${VNC_PORT} -dpi \${VNC_DPI:-96} -localhost -fg" | ||||||
|
||||||
if [ -n "\${VNC_PASSWORD+x}" ]; then | ||||||
startInBackgroundIfNotRunning "Xtigervnc" sudoUserIf "\${common_options} -passwd /usr/local/etc/vscode-dev-containers/vnc-passwd" | ||||||
|
@@ -404,11 +410,14 @@ if [ -n "${VNC_PASSWORD+x}" ]; then | |||||
fi | ||||||
chmod +x /usr/local/share/desktop-init.sh /usr/local/bin/set-resolution | ||||||
|
||||||
# Set up fluxbox config | ||||||
copy_fluxbox_config "/root" | ||||||
if [ "${USERNAME}" != "root" ]; then | ||||||
copy_fluxbox_config "/home/${USERNAME}" | ||||||
chown -R ${USERNAME} /home/${USERNAME}/.Xmodmap /home/${USERNAME}/.fluxbox | ||||||
# If we installed Fluxbox, set up fluxbox config | ||||||
if [ "${INSTALL_FLUXBOX}" = "true" ]; then | ||||||
copy_fluxbox_config "/root" | ||||||
|
||||||
if [ "${USERNAME}" != "root" ]; then | ||||||
copy_fluxbox_config "/home/${USERNAME}" | ||||||
chown -R ${USERNAME} /home/${USERNAME}/.Xmodmap /home/${USERNAME}/.fluxbox | ||||||
fi | ||||||
fi | ||||||
|
||||||
# Clean up | ||||||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"with_fluxbox": { | ||
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-20.04", | ||
"features": { | ||
"desktop-lite": { | ||
"installFluxbox": true | ||
} | ||
} | ||
}, | ||
|
||
"without_fluxbox": { | ||
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-20.04", | ||
"features": { | ||
"desktop-lite": { | ||
"installFluxbox": false | ||
} | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Optional: Import test library | ||
source dev-container-features-test-lib | ||
|
||
check "fluxbox exists" bash -c "ls -la ~/.fluxbox" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Optional: Import test library | ||
source dev-container-features-test-lib | ||
|
||
check "fluxbox does not exist" bash -c "! ls -la ~/.fluxbox" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.