← Back to team overview

cairo-dock-team team mailing list archive

[Bug 1878757] Re: gnome-flashback is incorrectly detected as gnome-shell

 

** Changed in: cairo-dock-core
   Importance: Undecided => Low

** Changed in: cairo-dock-core
       Status: New => Fix Committed

** Changed in: cairo-dock-core
    Milestone: None => 3.5.0

** Changed in: cairo-dock-core
     Assignee: (unassigned) => Fabounet (fabounet03)

-- 
You received this bug notification because you are a member of Cairo-
Dock Devs, which is subscribed to Cairo-Dock Core.
https://bugs.launchpad.net/bugs/1878757

Title:
  gnome-flashback is incorrectly detected as gnome-shell

Status in Cairo-Dock Core:
  Fix Committed

Bug description:
  I'm running cairo-dock 3.4.99.alpha1 (downloaded from latest git) on
  Ubuntu 18.04.

  I'm using the "Cairo-dock (GNOME)" session with compiz as the window
  manager.

  I'm manually starting "gnome-flashback", since I need it to process
  hotkey presses.

  
  My main problem is that initiating the compiz scale plugin by cairo-dock is not working anymore. This is the functionality that provides presenting a window group when clicking on a launcher that has multiple windows open.

  It seems that the cause of this problem is that the gnome-shell
  desktop manager backend is loaded instead of the compiz one. The cause
  of this is that cairo-dock checks for the presence of gnome-shell by
  querying the DBus name "org.gnome.Shell" (in src/implementations
  /cairo-dock-gnome-shell-integration.c, line 180), but gnome-flashback
  also provides this DBus name.

  
  Steps to reproduce
  ==================

  1. Run "Cairo-dock (GNOME)" session (with compiz window manager)
  2. Ensure that the "Scale" compiz pluging is enabled (in ccsm)
  3. Ensure that "Present window preview on click when several windows are grouped together" option is enabled in Cairo-dock's configuration (Advanced mode -> Taskbar)
  4. Start "gnome-flashback" (manually or autostart)
  5. Start multiple instances of the same program (e.g. gnome-terminal)
  6. Click on the taskbar icon representing the group of windows

  Expected behavior
  =================

  Scale view is displayed with all open windows of the clicked program
  (e.g. multiple terminal windows)

  Actual behavior
  ===============

  Nothing happens

  
  Workarounds
  ===========

   -- Do not run gnome-flashback. If it is running, kill it and restart cairo-dock (`killall gnome-flashback; killall cairo-dock; cairo-dock -o &`). Scale will work again (but services provided by gnome-flashback will not -- this includes handling some hotkeys).
   -- Comment out cd_init_gnome_shell_backend() in src/gldit/cairo-dock-desktop-manager.c (line 363)
   -- Switch cd_init_gnome_shell_backend() and cd_init_compiz_backend() in src/gldit/cairo-dock-desktop-manager.c (lines 361 - 363); this might be fragile if initialization depends on response time on DBus (I cannot tell if that happens synchronously).

  I can provide a PR for the third option.

  
  Additional info
  ===============

  Manual way to check if "org.gnome.Shell" exists on Dbus:

  dbus-send --print-reply --type=method_call --dest=org.gnome.Shell
  /org/gnome/Shell org.freedesktop.DBus.Introspectable.Introspect

  This prints out a bunch of info if gnome-flashback is running and an
  error message if it is not.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cairo-dock-core/+bug/1878757/+subscriptions


References