Skip to content
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

runcommand: add a new launch prefix for X11 programs #3829

Merged
merged 3 commits into from
Jan 8, 2024

Conversation

cmitu
Copy link
Contributor

@cmitu cmitu commented Jan 6, 2024

Rework parsing of CON: and XINIT: commandline options.

Extend the XINIT: launch prefix with two new ones in order to start a window manager before an x11 application is started.

XINIT-WM: will start a window manager without the cursor
XINIT-WMC: will start a window manager with the cursor

This is similar to how the 'x11' backend starts an application, but without additional configuration set in 'backends.cfg'.

Simplified the launching of x11 enabled ports by replacing their explicit launching scripts with a launch command based on the new launch prefix.

@joolswills joolswills force-pushed the runcommand-xinit-a branch 2 times, most recently from 6790914 to 67c033e Compare January 7, 2024 21:05
@joolswills
Copy link
Member

Thanks - have reworked the logic (as discussed) and updated the PR. I need to test it though (feel free to check).

Extend the XINIT: launch prefix with two new ones in order to start a window manager before an x11 application is started.

XINIT-WM: will start a window manager without the cursor
XINIT-WMC: will start a window manager with the cursor

This is similar to how the 'x11' backend starts an application, but without additional configuration set in 'backends.cfg'.
Removed the launching scripts for ports that were relying an x11 + window manager by using the new XINIT-WM: prefix added to runcommand.
@cmitu
Copy link
Contributor Author

cmitu commented Jan 8, 2024

It looks fine - wasn't familiar with the 'match and continue/restart' for the case options, but it works. The XINIT options are working fine from my testing and zork also seems unaffected by the changes.

@joolswills
Copy link
Member

Thank you!

This pull request was closed.
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.

2 participants