Skip to content

Commit b57ff42

Browse files
committed
feat: Add required input user group in Bazzite Portal by default
1 parent 98083aa commit b57ff42

File tree

4 files changed

+38
-14
lines changed

4 files changed

+38
-14
lines changed

system_files/deck/shared/usr/share/ublue-os/firstboot/yafti.yml

+5
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ screens:
1717
show_terminal: true
1818
package_manager: yafti.plugin.run
1919
groups:
20+
Add input group to current user:
21+
description: Adds the input group to your current user. Required by certain controller drivers.
22+
default: true
23+
packages:
24+
- Set input group: just --unstable add-user-to-input-group
2025
BIOS & Firmware Updates:
2126
description: Enables BIOS & Firmware updates for Steam Deck hardware
2227
default: true

system_files/deck/shared/usr/share/ublue-os/just/60-custom.just

+14-7
Original file line numberDiff line numberDiff line change
@@ -393,11 +393,18 @@ enable-flatpak-theming:
393393

394394
# Enable XwaylandVideoBridge for screensharing on KDE
395395
fix-screenshare:
396-
IMAGE_INFO="/usr/share/ublue-os/image-info.json" && \
397-
BASE_IMAGE_NAME=$(jq -r '."base-image-name"' < $IMAGE_INFO) && \
398-
if [[ ${BASE_IMAGE_NAME} == 'kinoite' ]]; then \
399-
mkdir -p $HOME/.config/autostart && \
400-
cp /usr/share/applications/org.kde.xwaylandvideobridge.desktop $HOME/.config/autostart/; \
401-
else \
402-
echo "This is only supported under KDE."; \
396+
#!/usr/bin/env bash
397+
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
398+
BASE_IMAGE_NAME=$(jq -r '."base-image-name"' < $IMAGE_INFO)
399+
if [[ ${BASE_IMAGE_NAME} == 'kinoite' ]]; then
400+
mkdir -p $HOME/.config/autostart
401+
cp /usr/share/applications/org.kde.xwaylandvideobridge.desktop $HOME/.config/autostart/
402+
else
403+
echo "This is only supported under KDE."
403404
fi
405+
406+
# Add user to "input" group required by certain controller drivers
407+
add-user-to-input-group:
408+
#!/usr/bin/env bash
409+
getent group input || sudo groupadd input
410+
sudo usermod -a -G input $USER

system_files/desktop/shared/usr/share/ublue-os/firstboot/yafti.yml

+5
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ screens:
3131
show_terminal: true
3232
package_manager: yafti.plugin.run
3333
groups:
34+
Add input group to current user:
35+
description: Adds the input group to your current user. Required by certain controller drivers.
36+
default: true
37+
packages:
38+
- Set input group: just --unstable add-user-to-input-group
3439
Greenlight:
3540
description: A utility for xCloud and xHome streaming
3641
default: false

system_files/desktop/shared/usr/share/ublue-os/just/60-custom.just

+14-7
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,18 @@ enable-flatpak-theming:
211211

212212
# Enable XwaylandVideoBridge for screensharing on KDE
213213
fix-screenshare:
214-
IMAGE_INFO="/usr/share/ublue-os/image-info.json" && \
215-
BASE_IMAGE_NAME=$(jq -r '."base-image-name"' < $IMAGE_INFO) && \
216-
if [[ ${BASE_IMAGE_NAME} == 'kinoite' ]]; then \
217-
mkdir -p $HOME/.config/autostart && \
218-
cp /usr/share/applications/org.kde.xwaylandvideobridge.desktop $HOME/.config/autostart/; \
219-
else \
220-
echo "This is only supported under KDE."; \
214+
#!/usr/bin/env bash
215+
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
216+
BASE_IMAGE_NAME=$(jq -r '."base-image-name"' < $IMAGE_INFO)
217+
if [[ ${BASE_IMAGE_NAME} == 'kinoite' ]]; then
218+
mkdir -p $HOME/.config/autostart
219+
cp /usr/share/applications/org.kde.xwaylandvideobridge.desktop $HOME/.config/autostart/
220+
else
221+
echo "This is only supported under KDE."
221222
fi
223+
224+
# Add user to "input" group required by certain controller drivers
225+
add-user-to-input-group:
226+
#!/usr/bin/env bash
227+
getent group input || sudo groupadd input
228+
sudo usermod -a -G input $USER

0 commit comments

Comments
 (0)