Giter Site home page Giter Site logo

Comments (20)

Zeuhlord avatar Zeuhlord commented on July 22, 2024

After latest updates it works again, I believe you can disregard this, it was probably an issue on the development version of Ubuntu.

from viberwrapper-indicator.

hotice avatar hotice commented on July 22, 2024

I'm having this issue too on Ubuntu 15.04: the indicator doesn't show up, the Viber window shows up for a few seconds and then it closes. This is the terminal output:

$ viberwrapper-indicator 
<class 'Xlib.protocol.request.QueryExtension'>
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/bin/viberwrapper-indicator", line 333, in run
    gtk.main_quit()
RuntimeError: called outside of a mainloop

from viberwrapper-indicator.

hotice avatar hotice commented on July 22, 2024

I managed to fix this by changing:

if geom['width'] == 22 and geom['height'] == 22:

To:

if geom['width'] == 10 and geom['height'] == 10:

from viberwrapper-indicator.

hotice avatar hotice commented on July 22, 2024

It's probably best to use this instead, which should make it work for everybody:

if geom['width'] == 10 and geom['height'] == 10 or geom['width'] == 22 and geom['height'] == 22:

from viberwrapper-indicator.

karas84 avatar karas84 commented on July 22, 2024

Sorry for the late reply, been really busy at work lately. Anyway I updated the code to use the same detection method I used in my whatsapp launcher. Unfortunately I can't test the code agaist 15.04 since I'm using the last LTS and can't upgrade. If you guys could test it for me I would appreciate it.
The new method does not use any hack to find viber (no more polling and checking geometry, that was really ugly) but asks compiz for notifications about new windows.

from viberwrapper-indicator.

hotice avatar hotice commented on July 22, 2024

Hmm but if it needs Compiz, it means it's Unity-only... while the old version was also working with other desktops that support AppIndicators, like Xfce, GNOME Classic (Flashback), Pantheon (elementary OS), MATE, etc...

from viberwrapper-indicator.

hotice avatar hotice commented on July 22, 2024

I just tested it and it works on Ubuntu 15.04.

from viberwrapper-indicator.

karas84 avatar karas84 commented on July 22, 2024

You are right, the thing is I started this project having unity in mind, so it felt natural to have compiz. Still I get that this way I'm leaving out a lot of non-unity users. Guess I could try to detect compiz and fallback to the "old detection method" if it's not present.

from viberwrapper-indicator.

fritzvl avatar fritzvl commented on July 22, 2024

I have this issue with the latest version of wrapper with 10/22 width support in line 320. I have Viber icon in both places - in the tray and in the upper-left corner.
I'm running 15.04 on my laptop with an additional display.

from viberwrapper-indicator.

hotice avatar hotice commented on July 22, 2024

@fritzvl could you please try downloading the latest Viber from its website and reinstall? I have a feeling that while the package version is the same, the contents are actually different.

from viberwrapper-indicator.

fritzvl avatar fritzvl commented on July 22, 2024

@hotice Just reinstall Viber from the official website, and reintall .deb of viberwrapper. Problem exists.
screenshot from 2015-05-26 21 12 11

from viberwrapper-indicator.

hotice avatar hotice commented on July 22, 2024

This is one weird bug, for me it doesn't happen in either Ubuntu 15.04 or 14.04 - screenshot with both versions (14.04 is the VirtualBox window on the right): http://i.imgur.com/Jd9gOV4.jpg

from viberwrapper-indicator.

hotice avatar hotice commented on July 22, 2024

@karas84 if possible, can you please use both detection methods so it works for both Unity and non-Unity desktops, so I can update the PPA?

from viberwrapper-indicator.

hotice avatar hotice commented on July 22, 2024

I've updated the PPA with the latest code from Git, even though it doesn't support Unity, since it looks like the old version had more bugs than the new one... this should help the dev track the bugs without having to worry about which version of the script was used. However, the latest version from Git fails in my test under Ubuntu 12.04, with the quite frequently reported "RuntimeError: called outside of a mainloop" error...

from viberwrapper-indicator.

karas84 avatar karas84 commented on July 22, 2024

@hotice Thank you. I'll add the old detection method tonight or tomorrow. I'm also interested in your test under 12.04. Am I wrong or that version supported system tray icons? That "could" be a starting point. Moreover my intention was to provide a workaround for those systems where the system tray was not supported, so if that's the case than I'd prefer not to address the issue.
Finally, thank you for providing a PPA for my work.

from viberwrapper-indicator.

karas84 avatar karas84 commented on July 22, 2024

I've reintroduced the old detection method in case compiz is not found. Actualy I modified it a little to prevent false negative detection due to wrong geometry (those "== 22"). Luckily it should be working better now.

from viberwrapper-indicator.

hotice avatar hotice commented on July 22, 2024

Yes, Unity in Ubuntu 12.04 allowed white-listing apps.

from viberwrapper-indicator.

karas84 avatar karas84 commented on July 22, 2024

@hotice With the last git I silenced that error (it was quite useless after all) and introduced some output information that might be useful for debugging. Could you give it I try for me on 12.04? If it's trivial to fix I might take it into consideration, otherwise I think I'll skip that version since with white-listing there actually is a workaround for viber that works.

from viberwrapper-indicator.

hotice avatar hotice commented on July 22, 2024

After some recent updates (to VirtualBox guest additions I think) Viber no longer works in my Ubuntu 12.04 machine so unfortunately I can't test it any more. I guess you can skip 12.04 since it does have the systray whitelist feature...

from viberwrapper-indicator.

karas84 avatar karas84 commented on July 22, 2024

My thoughts exactly. I'm closing the issue then.

from viberwrapper-indicator.

Related Issues (19)

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.