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

GJS problem #14

Open
mannfuri opened this issue Jun 26, 2023 · 1 comment
Open

GJS problem #14

mannfuri opened this issue Jun 26, 2023 · 1 comment

Comments

@mannfuri
Copy link

mannfuri commented Jun 26, 2023

Every time I log out and log back into the system, there is always an invisible GJS process that occupies one workspace. Even after I kill it in the command line, it gets started again by this script and creates a new workspace for it.

so i use chatgpt to help me for this problem.

// function handleWindowClose(act) {
//   let win = act.meta_window;
//   let name = win.get_id();
//   if (_old_workspaces[name] !== undefined) {
//     win.get_display().get_workspace_manager().get_workspace_by_index(_old_workspaces[name]).activate(global.get_current_time());
//   }
// };


function handleWindowClose(act) {
  let win = act.meta_window;
  let name = win.get_id();
  if (_old_workspaces[name] !== undefined && name !== 'gjs') { // 避免激活 "GJS" 窗口所在的工作区
    win.get_display().get_workspace_manager().get_workspace_by_index(_old_workspaces[name]).activate(global.get_current_time());
  }
}

it seems work well for now.

I use Ubuntu 22.04.2 LTS X64 with gnome 42.5

@nkcong206
Copy link

It has a conflict with gJs. when I turn on this extension will always show gjs, and the same extensions are not available on ubuntu 22.04 with GNOME 42.9.

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

No branches or pull requests

2 participants