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

Workspace detection is not working with gnome-shell #51

Open
Hoglet opened this issue Apr 16, 2021 · 1 comment
Open

Workspace detection is not working with gnome-shell #51

Hoglet opened this issue Apr 16, 2021 · 1 comment

Comments

@Hoglet
Copy link
Owner

Hoglet commented Apr 16, 2021

This is almost certainly a bug in Mutter (gnome-shell window manager) or simply that they choose to not implement part of the specification.

Investigate and report bug to their developers or find out if they have another way they want to go.

@Hoglet
Copy link
Owner Author

Hoglet commented Sep 12, 2021

Workaround do it "their way":
Data seems to be saved in gsettings:

https://github.com/GNOME/gsettings-desktop-schemas/blob/master/schemas/org.gnome.desktop.wm.preferences.gschema.xml.in

Path:
"org.gnome.desktop.wm.preferences"

Workspace names:
"workspace-names"

Number of workspaces:
"num-workspaces"

Current workspace:
?

#include <giomm/settings.h>
#include <iostream>

int main() {
  Glib::RefPtr<Gio::Settings> s = Gio::Settings::create("org.gnome.desktop.wm.preferences");
  int i = s->get_int("num-workspaces");

  std::cout << i << std::endl;
}

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

No branches or pull requests

1 participant