Giter Site home page Giter Site logo

Comments (10)

karas84 avatar karas84 commented on July 22, 2024

Are you using an edited version of the file perhaps? That line (330) does not match with mine. Anyway the only think I can think of (looking at that "No such file or directory") is that it does not find viber on the predefined path ('/opt/viber/Viber'). Do you have viber installed? Is it installed in that path?

from viberwrapper-indicator.

kpuljek avatar kpuljek commented on July 22, 2024

I installed it from the ppa:nilarimogard/webupd8 ppa as is, so perhaps that is the issue. I have assumed it's the same version as the one provided here, but maybe I'm wrong and there are indeed some modifications. I will try compliing it this evening and check the Viber installation path. Thank you!

from viberwrapper-indicator.

karas84 avatar karas84 commented on July 22, 2024

Is it working? I'd really like some feedback about this so I can correct the code if there is a bug (and close the issue).

from viberwrapper-indicator.

ekho avatar ekho commented on July 22, 2024

Linux Mint 17 (Mate desktop)

Launched and exited after 5-10 seconds

$ 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.

karas84 avatar karas84 commented on July 22, 2024

Hi i-ekho, what I made is an indicator for Unity, it is not supposed to work with other desktop environments, I'm sorry. Moreover, since it's been more than a week that kpuljek didn't reply I have to suppose that it is working for him now and so I'm closing this issue.

from viberwrapper-indicator.

ekho avatar ekho commented on July 22, 2024

Ok, thx

from viberwrapper-indicator.

kpuljek avatar kpuljek commented on July 22, 2024

Hey,

sorry for responding so late, been really busy and totally forgot about this, and the notification email ended up in my spam folder.

It turns out that my viber path is /usr/share/viber/Viber

Upon changing the path in the py file, I get the same error as above (I AM running unity, however):

<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 "viberwrapper-indicator.py", line 448, in run
gtk.main_quit()
RuntimeError: called outside of a mainloop

It does run viber for a few seconds, and the icon appears in the usual top left, out of place, position.

from viberwrapper-indicator.

karas84 avatar karas84 commented on July 22, 2024

Did you get Viber right from viber's website? (The current url is the following: http://download.cdn.viber.com/cdn/desktop/Linux/viber.deb) Because the one from the website has as installation path the one in the script (you can confirm that by downloading the deb I linked here and extract it somewhere, the executable should be in opt/viber and not in usr/share/viber).
My Viber is at version 4.2.2.6, can you check that (my executable in /opt/viber/Viber has the following md5sum: 668252631ed50ca9b10e4156dd32a3fc)? My guess is that somehow your Viber is not the same one I am using and my scritpt (although it's able to launch it) cannot find the running instance so after 10 seconds it kills it.

from viberwrapper-indicator.

kpuljek avatar kpuljek commented on July 22, 2024

It was from the website indeed, but this is a bit newer version than I had and now it's installed in two places (?), however your indicator wrapper now runs this newer version and everything is okay. I have NO idea why it originally installed in the /usr/share, I install everything either through gdebi or the terminal with dpkg.

This can now be closed (it already is :) ), although I'm not sure I know exactly what happened. THANK YOU!

from viberwrapper-indicator.

karas84 avatar karas84 commented on July 22, 2024

Glad to hear that it's working now :). Maybe you installed Viber right before the new version was pushed up online on the website, but anyway it's not important atm since it's working now :). Don't know if you noticed but I updated the wrapper and thanks to this issue now you can launch Viber minimized (sort of, the chat windows auto-closes after appearing for an instant), just launch the wrapper with --close-chat if you like the new feature.

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.