Skip to content

protocols/workspace: Set ext workspace id for pinned workspace #1478

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

Merged
merged 1 commit into from
Aug 22, 2025

Conversation

ids1024
Copy link
Member

@ids1024 ids1024 commented Jun 24, 2025

The id is defined to be sent only once, on creation of the handle or later. And only for workspaces that are "likely to be stable across multiple sessions".

Set we add an id initially for pinned workspaces, and add one when the workspace is pinned.

The id is not supposed to be human readable, so we just use a random value.

I don't think we currently have any plans that would need this feature, but this will allow scripts to recognize that a pinned workspace is the same as a workspace from a previous session, and do things like move a certain application to that workspace.

We'll need to update clients with pop-os/cosmic-protocols#62 before merging this.

@ids1024
Copy link
Member Author

ids1024 commented Jun 26, 2025

pop-os/xdg-desktop-portal-cosmic#179, pop-os/cosmic-workspaces-epoch#199, pop-os/cosmic-applets#982, and pop-os/cosmic-panel#411 should be all the necessary client fixes to avoid crashes with this.

(Annoying I missed this event that was added since our earlier version of the protocol was forked; I wish there was a way to make non-exhaustive matching a warning....)

The `id` is defined to be sent only once, on creation of the handle or
later. And only for workspaces that are "likely to be stable across
multiple sessions".

Set we add an `id` initially for pinned workspaces, and add one when the
workspace is pinned.

The `id` is not supposed to be human readable, so we just use a random
value.
@ids1024
Copy link
Member Author

ids1024 commented Aug 21, 2025

Oh yeah. Now those have been merged for a while, and everything here seems to be working.

@ids1024 ids1024 marked this pull request as ready for review August 21, 2025 20:15
@ids1024 ids1024 requested a review from a team August 21, 2025 20:15
@Drakulix Drakulix merged commit e54f4b4 into master Aug 22, 2025
6 checks passed
@Drakulix Drakulix deleted the ext-id_noble branch August 22, 2025 09:58
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