Skip to content

Feature/wayvnc - #944

Open
mattmix wants to merge 4 commits into
OSC:masterfrom
mattmix:feature/wayvnc
Open

Feature/wayvnc#944
mattmix wants to merge 4 commits into
OSC:masterfrom
mattmix:feature/wayvnc

Conversation

@mattmix

@mattmix mattmix commented May 13, 2026

Copy link
Copy Markdown

Please review our Contributing Guide before submitting a pull request.

What does this PR do?

Adds a wayvnc batch_connect template to support wlroots based compositors.

Related issue

Closes #943

Testing

  • Tests included
  • No tests needed — reason: ___

Checklist

  • Follows project code style and conventions
  • Documentation provided (if new feature, adapter or behavior change)
  • This is a large feature and was discussed in an issue first (if applicable)

Anything else?

wayvnc 0.10 is required for DES authentication. There are built packages for EL10 at my Copr repo or build with mock/rpgk using specs.

Example app using labwc at https://github.com/mattmix/bc_wayland_example. Requires labwc, waybar, swaybg, and nwg-drawer to be installed. Copr repo or specs.

@moffatsadeghi

Copy link
Copy Markdown
Contributor

@johrstrom @Oglopf @treydock any thoughts on this PR?

Comment on lines +72 to +77
cat > "#{wayvnc_config}" <<WAYVNC_CONF
enable_auth=true
password=${password}
relax_encryption=true
allow_broken_crypto=true
WAYVNC_CONF

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we fix this up a little in formatting to use <<- or similar so we don't have this indentation?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed the indent as requested.

if [[ -d "/run/user/$(id -u)" && -w "/run/user/$(id -u)" ]]; then
export XDG_RUNTIME_DIR="/run/user/$(id -u)"
else
export XDG_RUNTIME_DIR="/tmp/ood-runtime-$(id -u)"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should likely use $TMPDIR instead of just /tmp, I know slurm provides it's own per job tmp dir.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think /tmp is actually better, as it's almost always present where as $TMPDIR is a site setting that not everyone may use. Even with Slurm's private namespace for /tmp, the path we use is TMPDIR=/tmp.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can just check for $TMPDIR and use it if present.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This now uses $TMPDIR, falling back to /tmp if not present.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for wayvnc

4 participants