Comments (20)
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.
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.
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.
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.
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.
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.
I just tested it and it works on Ubuntu 15.04.
from viberwrapper-indicator.
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.
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.
@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.
@hotice Just reinstall Viber from the official website, and reintall .deb of viberwrapper. Problem exists.
from viberwrapper-indicator.
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.
@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.
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.
@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.
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.
Yes, Unity in Ubuntu 12.04 allowed white-listing apps.
from viberwrapper-indicator.
@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.
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.
My thoughts exactly. I'm closing the issue then.
from viberwrapper-indicator.
Related Issues (19)
- Cannot start on Ubuntu 14.04 HOT 10
- Two indicator icons (Ubuntu 15.04) HOT 6
- Exception in thread Thread=2 on Ubuntu 14.04 HOT 31
- "--close-chat" option fails HOT 3
- Dont work HOT 2
- Lock to launcher HOT 1
- Viberwrapper indicator is not working HOT 7
- Memory leak on Ubuntu 15.04 HOT 5
- Update the script to python3 HOT 1
- Add "Start Minimized" feature? HOT 3
- Viber Wrapper doesn't let to copypaste and don't show new messages in icon
- Viberwrapper not work and crach viber app in KDE5 HOT 1
- Viber needs to be activated prior to running viberwrapper-indicator HOT 2
- Make the viber icon themable HOT 4
- Create package for it HOT 2
- High quality AppIndicator icon HOT 22
- 22 May 2015 - Viber update ruined the indicator HOT 14
- Indicator doesn't work properly after update on Ubuntu 15.04 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from viberwrapper-indicator.