Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@deboer-tim
Copy link
Collaborator

Adds an option to set a default presentation for connected presentation clients. This presentation is set before trying to connect to the CDS. If the CDS doesn't set any presentation then this one is shown; otherwise whatever the CDS says takes over.

This avoids the standard ICPC Tools splash page, and allows you to have a default w/o waiting for clients to connect and then setting it in the pres admin.

Fixes #955.

Adds an option to set a default presentation for connected presentation clients. This
presentation is set before trying to connect to the CDS. If the CDS doesn't set any
presentation then this one is shown; otherwise whatever the CDS says takes over.

This avoids the standard ICPC Tools loading page, and allows you to have a default
w/o waiting for clients to connect and then setting it in the pres admin.

Fixes icpctools#955.
}

PresentationInfo pi = StandaloneLauncher.findPresentation(presentations, presStr[0]);
if (pi == null)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe also add an trace here that the presentation doesn't exist?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

findPresentation() already traces and does a system exit if the presentation can't be found or matched so this code is unnecessary and could be removed, only kept it since it matches what the standalone client had.

@deboer-tim deboer-tim merged commit 6304201 into icpctools:main Aug 25, 2025
4 checks passed
@deboer-tim deboer-tim deleted the default-pres branch August 25, 2025 17:05
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.

p100 should default to teamdesktop

2 participants