Coder Social home page Coder Social logo

ubuntu / gnome-shell-extension-appindicator Goto Github PK

View Code? Open in Web Editor NEW
1.1K 29.0 155.0 875 KB

Adds KStatusNotifierItem support to the Shell

Home Page: https://extensions.gnome.org/extension/615/appindicator-support/

License: GNU General Public License v2.0

JavaScript 96.94% Python 1.48% Meson 1.58%

gnome-shell-extension-appindicator's People

Contributors

3v1n0 avatar alexmelman88 avatar andia89 avatar arigit avatar aruhier avatar asciiwolf avatar azzar1 avatar blankparticle avatar dkavraal avatar dnohales avatar dongfengweixiao avatar drivera-armedia avatar emansom avatar ferdnyc avatar finii avatar genosse-einhorn avatar guzzard avatar hugojosefson avatar inv3rse avatar jhasse avatar jose1711 avatar kicsyromy avatar maronghappy avatar mejans avatar nater1983 avatar rmader avatar sergio-costas avatar tim77 avatar unixfox avatar urbalazs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gnome-shell-extension-appindicator's Issues

Since 14.04, dropbox icon sometime disappears after the lock screen kicks in.

The title says it all.
Sometime the dropbox icons disappears from the panel; I notice it after returning from lock screen.
Disabling and enabling the extension has no effects, but restarting gnome-shell works.
I have set the default for appindicator to show new icons in the panel, BTW.

System: Ubuntu Gnome 14.04, gnome-shell 3.10.4, dropbox up-to-date.

I understand there is really little data here; if someone can direct me in how to get more info next time it happens, I will try.

Thanks!

Not working in Arch Linux

Debug Info:

Extension: v9-7-gad25368-dirty
Shell: 3.10.1
Kernel: Linux archer 3.11.6-1-ARCH #1 SMP PREEMPT Fri Oct 18 23:22:36 CEST 2013 x86_64 GNU/Linux
Distribution: "Arch Linux"
Loaded Indicators: steam

Hi. In Arch Linux libdbusmenu packaged renamed to libdbusmenu-glib and there were change in other related packages too. But after that, extension stopped working properly. It only works with steam now.

Dropbox Indicator not detected

Distribution: Ubuntu GNOME 13.10
GNOME version: 3.10.1
Extension version: Latest from extensions.gnome.org
Indicator Applet Involved: nautilus-dropbox 1.4.0-3

Since updating to Ubuntu GNOME 13.10, the Appindicator extension does not seem to detect the dropbox applet. It does not even appear in the extensions setting menu.

To duplicate, install the appindicator support extension in Ubuntu GNOME 13.10 and enable it.

Not recognising Transmission-gtk

Distribution: Arch
Extension Version: From git
Shell Version: 3.12.1
Problem: It doesn't recognize transmission's indicator and it stays at notification center, it also doesn't show up on the app settings to give a custom behaviour
Transmission Version: 2.82

I can't install it in ubuntu trusty 14.04

I can't install the extension in a recently installed ubuntu 14.04 64bit.

I have tried to install it from extensions.gnome.org and downloading the zip from github and uncompressing it in .local/share/gnome-shell/extensions/. It says that the extension is not compatible.

I have tried then to edit metadata.json and edit the shell-version. Then, extension is shown in the list of extensions, but disabled. When I try to enable it, I get:

Error: No JS module 'config' found in search path

Stack trace:
@/home/amateo/.local/share/gnome-shell/extensions/[email protected]/prefs.js:25
Application<._getExtensionPrefsModule@/usr/share/gnome-shell/js/extensionPrefs/main.js:86
wrapper@resource:///org/gnome/gjs/modules/lang.js:169
Application<._selectExtension@/usr/share/gnome-shell/js/extensionPrefs/main.js:101
wrapper@resource:///org/gnome/gjs/modules/lang.js:169
Application<._extensionSelected@/usr/share/gnome-shell/js/extensionPrefs/main.js:121
wrapper@resource:///org/gnome/gjs/modules/lang.js:169
Application<._selectExtension@/usr/share/gnome-shell/js/extensionPrefs/main.js:112
wrapper@resource:///org/gnome/gjs/modules/lang.js:169
Application<._extensionsLoaded@/usr/share/gnome-shell/js/extensionPrefs/main.js:221
wrapper@resource:///org/gnome/gjs/modules/lang.js:169
_emit@resource:///org/gnome/gjs/modules/signals.js:124
ExtensionFinder<._extensionsLoaded@/usr/share/gnome-shell/js/misc/extensionUtils.js:178
wrapper@resource:///org/gnome/gjs/modules/lang.js:169
done@/usr/share/gnome-shell/js/misc/fileUtils.js:33
_collectFromDirectoryAsync/</<@/usr/share/gnome-shell/js/misc/fileUtils.js:51
onNextFileComplete@/usr/share/gnome-shell/js/misc/fileUtils.js:21
main@/usr/share/gnome-shell/js/extensionPrefs/main.js:278
@:1

syncthing indicator

Hi,

I'm usign syncthing-gtk, which is using python and libappindicator, but appindicator-support does not find the indicator and it remains in the message tray

Change ugly skype icon

Awesome plugin!

Is there any possibility to manually change the skype icon? I want to change the skype icon in the tray since ... 3 years or something.

I'd even hardcode something inside the extension, so if you could point me at the specific location in the code I'd be really happy.

Cheers,

Wolf

Lost top menu icons after unlock screen

Lost top menu icons after unlock screen

Set 'show in panel' default placement
Lock screen (Ctrl+Alt+L)
Unlock screen

Icons now in the message tray without context menu

Ubuntu 12.10 amd64
gnome-shell 3.6.2

long indicator menus don't fit into the screen

I don't know if this is what your extension do, because there are problems with virtually any extended menu that doesn't fit into the screen, not only indicators.
There is a right click menu, and I think this should happen to all windows that don't fit the size of the screen. Probably it should be a separate extension. Don't know if it's already implemented in newer versions of gnome shell. I am using Ubuntu Gnome Trusty amd64 with GS 3.10.

menu_015

Anyway sorry bugging you, I had this on my mind for some time.

New Maintainer needed

I don't have enough time anymore to continue maintaining the extension with the current feature set.

What is the state of the project? What will be expected of my successor?

  • The code is fairly mature, and working well. There isn't any major development needed. However, there still are some bugs lurking within, and the low-hanging fruit has been picked already.
  • Some home-grown hacks are used throughout the code base, and this might not scale in the long run.
  • Sadly, a number of GNOME bugs need to be worked around.
  • The AppIndicator/KStatusNotifierItem protocol is only barely specified, and the spec that floated around in the net is outdated and wrong. Your best bet is to learn from existing implementations, and test with existing indicators.
  • Gnome 3.16 needs to be supported as soon as possible, and the message tray redesign might have broken some things.

In order to be successful at developing and maintaining this extension, you probably should have some experience in writing extensions for the Gnome Shell, or gnome-related software development in general.

Are you interested? Write a comment explaining why you're suited best for the task.

Gnome 3.10 Support

I changed metadata.json and added 3.10 as version. Extension loads fine but icons are not showing up either in message tray or in panel.

SMplayer error when using multiple instances

This error is kind of messy, I usually end up with smplayer closed and one or more icons in the system tray (smplayer indicator is set to appear in system tray), prezent but not funcţional. Sometimes the icon loses touch with smplayer (usually when there's only one instance in tray).
After restarting gnome-shell icons either dissappear (if they got no connection to any instance) or they become functional in the other case.
My system: Ubuntu Gnome 14.04.2 amd64 with kernel 3.13 (installed today on 14.04.1).

Extension: v15-1-g9dcf3fc
Shell: 3.10.4
Kernel: Linux alex-ntbk 3.13.0-46-lowlatency #79-Ubuntu SMP PREEMPT Tue Mar 10 20:23:54 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Distribution: Ubuntu 14.04.2 LTS
Loaded Indicators: variety software-update-available indicator-cpufreq psensor y-ppa-indicator copyq smplayer

cache/upstart/gnome-session-GNOME.log :

Discarding: 14 over 15
This is SMPlayer v. 14.9.0 (svn r6778) running on Linux
Gjs-Message: JS LOG: [AppIndicatorSupport-DEBUG] registering :1.439/org/kde/statusnotifieritem/1 for the first time.
Gjs-Message: JS LOG: [AppIndicatorSupport-DEBUG] done registering

(gnome-shell:5666): GLib-GIO-CRITICAL **: g_themed_icon_constructed: assertion 'themed->names != NULL && themed->names[0] != NULL' failed
Gjs-Message: JS LOG: [AppIndicatorSupport-DEBUG] creating menu on :1.439,/org/kde/statusnotifieritem/1/menu
Gjs-Message: JS LOG: AppOutputStreamSlider
Window manager warning: Log level 8: g_variant_compare: assertion '!g_variant_is_container (a)' failed
Window manager warning: Log level 8: g_variant_compare: assertion '!g_variant_is_container (a)' failed
Window manager warning: Log level 8: g_variant_compare: assertion '!g_variant_is_container (a)' failed

(gnome-shell:5666): Clutter-WARNING **: Spurious clutter_actor_allocate called for actor 0x6f1ca40/trough which isn't a descendent of the stage!

(gnome-shell:5666): Clutter-WARNING **: Spurious clutter_actor_allocate called for actor 0x6f1ced0/vhandle which isn't a descendent of the stage!

Gjs-Message: JS LOG: [AppIndicatorSupport-DEBUG] Destroying smplayer
Gjs-Message: JS LOG: [AppIndicatorSupport-DEBUG] Destroying icon actor

(gnome-shell:5666): Clutter-WARNING **: Attempting to remove actor of type 'Gjs_AppIndicatorIconActor__1' from group of class 'StBoxLayout', but the container is not the actor's parent.

(gnome-shell:5666): Clutter-WARNING **: Spurious clutter_actor_allocate called for actor 0x6f1ca40/trough which isn't a descendent of the stage!

(gnome-shell:5666): Clutter-WARNING **: Spurious clutter_actor_allocate called for actor 0x6f1ced0/vhandle which isn't a descendent of the stage!

Gjs-Message: JS LOG: [AppIndicatorSupport-WARN] XmlLessDBusProxy::call: DBus error: Gio.DBusError: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.410 was not provided by any .service files

Hangouts

Google hangouts icon is present but invisible.

Copy App not working

bildschirmfoto von 2014-03-10 13 43 24

The Copy App is not working :( It just displays a lot of horizontal seperators, the login name at the top, a link to their website and an arrow indicator from the line "recent items" ...

not working (still) in gnome shell 3.10 (ubuntu gnome)

indicators don't show anywhere. I must admit, I am kind of tired of debuging this extension. In short: after deactivating almost all my extensions, I managed to make appindicator support work, after restarting my computer, but it didn't work for tv-maxe. I will paste down some of the errors I get:

(gnome-shell:3365): Gjs-WARNING **: JS ERROR: TypeError: dbusItem.property_get is not a function
MenuItemFactory.createItem@/home/alex/.local/share/gnome-shell/extensions/[email protected]/dbusMenu.js:504
Client<.attachToMenu@/home/alex/.local/share/gnome-shell/extensions/[email protected]/dbusMenu.js:776
wrapper@resource:///org/gnome/gjs/modules/lang.js:169
IndicatorStatusIcon<._display/<@/home/alex/.local/share/gnome-shell/extensions/[email protected]/indicatorStatusIcon.js:107
AppIndicator<.getMenuClient/<@/home/alex/.local/share/gnome-shell/extensions/[email protected]/appIndicator.js:133
AppIndicator<._validateMenu/<@/home/alex/.local/share/gnome-shell/extensions/[email protected]/appIndicator.js:154

(gnome-shell:3365): Gjs-WARNING **: JS ERROR: TypeError: this._items[(intermediate value)].icon is undefined
IconGrid<._updateChildrenScale@/usr/share/gnome-shell/js/ui/iconGrid.js:524
wrapper@resource:///org/gnome/gjs/modules/lang.js:169
IconGrid<.adaptToSize/<@/usr/share/gnome-shell/js/ui/iconGrid.js:517

(zeitgeist-datahub:3800): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(zeitgeist-datahub:3800): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Gjs-Message: JS LOG: [AppIndicatorSupport-DEBUG] Adding indicator as status menu
Gjs-Message: JS LOG: [AppIndicatorSupport-FATAL] unable to lookup icon for My-Weather-Indicator-panel
Gjs-Message: JS LOG: [AppIndicatorSupport-FATAL] unable to lookup icon for My-Weather-Indicator-panel
Gjs-Message: JS LOG: [AppIndicatorSupport-FATAL] unable to lookup icon for My-Weather-Indicator-panel
Gjs-Message: JS LOG: [AppIndicatorSupport-FATAL] unable to lookup icon for My-Weather-Indicator-panel
Gjs-Message: JS LOG: [AppIndicatorSupport-DEBUG] creating menu on :1.60,/org/ayatana/NotificationItem/My_Weather_Indicator/Menu

(gnome-shell:3365): Gjs-WARNING **: JS ERROR: TypeError: dbusItem.property_get is not a function
MenuItemFactory.createItem@/home/alex/.local/share/gnome-shell/extensions/[email protected]/dbusMenu.js:504
Client<.attachToMenu@/home/alex/.local/share/gnome-shell/extensions/[email protected]/dbusMenu.js:776
wrapper@resource:///org/gnome/gjs/modules/lang.js:169
IndicatorStatusIcon<._display/<@/home/alex/.local/share/gnome-shell/extensions/[email protected]/indicatorStatusIcon.js:107
AppIndicator<.getMenuClient/<@/home/alex/.local/share/gnome-shell/extensions/[email protected]/appIndicator.js:133
AppIndicator<._validateMenu/<@/home/alex/.local/share/gnome-shell/extensions/[email protected]/appIndicator.js:154

Thankfully the extensions at this commit:
https://github.com/rgcjonas/gnome-shell-extension-appindicator/tree/1e3186dfe689c0d44311e927a610abae0259c1c9
works fine, except for seccond level nested menu, but it's ok this way too.
If you think it's not worth it making master branch work for my case, please make it easy for other ubuntu gnome 14.04 lts users to download the extension at this stage. I myself began to think that the effort is too big

Different Actions on Left and Right Click

I'll tell what I suggest by example. When I click on Transmission's (a torrent client app) indicator it opens a menu. Which is pretty useful. The same happens when I right click on the indicator. Something feels wrong here. Don't you think it would be better if left click brings indicator's window in front of others and right click opens the menu?

I think that's handled in this extension's indicatorStatusIcon.js but I'm not really familiar with coding for Ubuntu or similar. I'm a web developer and (not to brag about it but) I can say that I'm pro at Javascript so if you can just point me what to do or at least where to start learning to code for Ubuntu, I can do what I want and I will make a pull request to the repo.

Thanks for the extension, it's really does a lot!

Hakan Aktas.

Dropbox has small icon in tray

In gnome-shell 3.6+ icons in tray have a fixed width which is equal to the tray height. Can you make this true also for app indicator icons? Dropbox size in screenshot is inconsistent!
schermata da 2013-11-30 16 57 56

SMPlayer icon doesn't show

SMPlayer icon doesn't show anywere when Options -> Show icon in system tray

Ubuntu 13.04
gnome-shell 3.7.92
sni-qt (0.2.6-0ubuntu1)

Installation instructions?

Can we ask for some installation instructions in the README?

I have copied the folder to ~/.local/share/gnome-shell/extensions but not seen by browser at extensions.gnome.org. Tried gnome tweak tool but would not open any file. Found a zip file build in the Makefile, but again tweak tool would not look at it. What's the secret trick?

The reason I am trying to install the git version is because my icons/apps are dying at the GS 3.8 unlock screen on Ubuntu 13.04 + gnome 3 ppa. There seems to be some bugs fixed here relating to this a couple of months ago although I am surprised this important fix is not in the version on extensions.gnome.org. And BTW, you want version numbers but how do I tell what version is installed from that site!?

Scaled UI not recognized

First, thanks for this great extension!

I just want to mention that a scaled GNOME panel is not supported and the icons appear too large when scaled down the UI.
Perhaps you can recognize the scaling and just scale the icon by that factor. I edited the appIndicator.js myself and it looks quite good.

Any chances for GNOME 3.12

When we can expect GNOME 3.12 support? GNOME 3.11.92 already available, release very soon, current git version doesn't work.

Is it possible that this extension works with cinnamon?

Is it possible that this extension is compatible with Cinnamon after some changes?
If the answer is NO, can anyone tell me briefly how this extension works? I have tried to read some of the source codes. But without knowing the idea behind them, I have lost in details.
I do know an idea that can implement global menu bar in X: XEmbed. Does this extension use XEmbed?

g_variant_compare() is used on GVariant of type 'ay'

As you say, possible the crash will be the png icons. I see that is possible send a icon-data

https://github.com/rgcjonas/gnome-shell-extension-appindicator/blob/9dcf3fcf1e948823c10d1712505cba14c95fdb4d/dbusMenu.js#L79

then, here https://github.com/rgcjonas/gnome-shell-extension-appindicator/blob/9dcf3fcf1e948823c10d1712505cba14c95fdb4d/dbusMenu.js#L132

there are a comparation of a type "ay" and a GVariant comparation is only for basic types: https://developer.gnome.org/glib/stable/glib-GVariant.html#g-variant-compare

Is know that this types of comparations could cause problems...

Another situation will be that you have here some flags to prevent lost data on the layout:
https://github.com/rgcjonas/gnome-shell-extension-appindicator/blob/9dcf3fcf1e948823c10d1712505cba14c95fdb4d/dbusMenu.js#L223

Will not be also important for properties?

I test for some time how the update of items occurs and normally they update several things at the same time and then could delayed for a long time without any other update. So, will not be usefull send the update of layout and properties to an idle, waiting for all Dbus changes and then update only one time the layout or properties?

Regards.

Chrome Notifications and Google Hangouts

Extension: v14
Shell: 3.12.2
Kernel: Linux jody-desktop 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Distribution: Ubuntu 14.04.1 LTS
Loaded Indicators: software-update-available chrome_app_indicator_1 chrome_app_indicator_2

Missing icons for Chrome Notifications and Google Hangouts. I can see the highlight where the icons should be, but the icons are not visible.

Dropbox icon

One small thing - I had Dropbox icon from Ubuntu-mono-dark set, but after enable this extension I have default blue Dropbox icon.

Integrate support for indicators in the dash coded by Thomas Schaberreiter

Thomas Schaberreiter [email protected] worked on displaying appindicators in the gnome shell dash and sent me the code via private email

Quoting the original email:

What it does:
- Try to map the indicator to an app, based on the indicator id.
- If it succeeds, use the app icon as background and display the indicator status icon in the lower left corner.
- If app mapping fails, use a default background image and do the same.
- If app mapping succeeds, blacklist any additional application icons in the dash or in the dash favourites.
- Bind the indicator menu to the dash icon.

For now, I integrated the dash icon code with the appindicator extension 
by replacing it with the message tray source in statusNotifierDispatcher.js. 
Code is tested with gnome-shell 3.8.3. 

dashindicator

Attached Code: https://gist.github.com/rgcjonas/57e155342d892df4b1cb

Task: integrate that feature into this extension
I'll pick it up after vacation :)

Experimental dash placement is not compatible with dash-to-dock.

Latest git of the AppIndicator extension, latest stable of dash-to-dock from extensions.gnome.org
Shell 3.8 on Ubuntu 13.10

The icon simply doesn't show up.
There is nothing(!) to be found in the error log.

Might be needed to dig into the dash-to-dock code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.