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

Gnome 3 "Flashback" session, with gnome-panel #52

Open
ndorf opened this issue Mar 19, 2017 · 4 comments
Open

Gnome 3 "Flashback" session, with gnome-panel #52

ndorf opened this issue Mar 19, 2017 · 4 comments
Labels

Comments

@ndorf
Copy link

ndorf commented Mar 19, 2017

Is it possible to get this to work with Gnome 3's gnome-session-flashback, which runs gnome-panel?

I'm using the latest Debian stretch (testing), with gnome-panel 3.20.1. I simply built against gtk3 and ran it, but it comes up in its own standalone window rather than in the panel.

It does work in systray mode, but that's not ideal. The flashback session also still includes the classic gnome multiload, which still works in the same way: it can be added by alt-right-clicking and selecting "Add to panel...," along with all the other old applets from gnome2. Is this supported in multiload-ng?

On Ubuntu, flashback runs an indicator-applet-complete in the gnome-panel, so multiload-ng works that way. It'd be nice to have it work on Debian, as well.

@udda
Copy link
Owner

udda commented Mar 25, 2017

Hello's​, sorry for the delay.

Native support for GNOME Shell/GNOME Flashback is planned for Multiload-ng 2.x (maybe around 2.2 or 2.4).

Internal architecture of Multiload-ng 1.x is too tightly tied to classic plugins, whereas porting to GNOME 3 requires the ability to export the widget from C code to GJS environment (using so-called GObject introspection). This is simply not possible in 1.x.

You could try these steps:

  • since GNOME 2 plugins are supported, you could try to build against GTK2
  • if the plugin is still missing, maybe it's a location problem. Find where other plugins are stored, and move libmultiload-ng.la there
  • otherwise, until Multiload-ng has full GNOME 3 support, you'll have to run the plugin inside an indicator, like Ubuntu does.

Please let me know whether you manage to make it work.

@udda udda added the new port label Mar 25, 2017
@ndorf
Copy link
Author

ndorf commented Mar 31, 2017 via email

@udda
Copy link
Owner

udda commented Apr 2, 2017

You are correct, current Multiload-ng plugins don't work with GNOME Flashback. As you pointed out, applets come out as executable files.

This surprised me too, but geyes applet was actually ported to GTK3, along with other GNOME 2 applets. Flashback session is still a GNOME 3 variant, so old applets simply won't work.

Looking​ at the source code you linked, it seems that build model follows the one of MATE applets, which also outputs executables (and unlike full GNOME 3, doesn't need introspection stuff). So I think it will be pretty easy to port.

Unfortunately, development of 1.x branch is limited to serious bug fixes, as I'm currently focusing to upcoming major release 2.0, so you will have to wait a while.

About indicator, many distros (like Ubuntu and probably Debian) ship with two separate packages for GTK3 indicators and GTK2 indicators. I don't remember the actual names of the libraries, but I can find them if needed.

@rilian-la-te
Copy link

rilian-la-te commented Feb 5, 2018

About Gnome-Shell - you can use SNI here with https://github.com/Ubuntu/gnome-shell-extension-appindicator

But with issues - it will not show an oversized icon.

So, I think it can be solved temporarily)

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

No branches or pull requests

3 participants