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

No interface #10

Open
GarethDownes opened this issue Mar 8, 2021 · 7 comments
Open

No interface #10

GarethDownes opened this issue Mar 8, 2021 · 7 comments

Comments

@GarethDownes
Copy link

Hi @tiktaalik-dev,

Super silly issue to have, but I can't work it out.

  • "python3 proximity.py" runs but does not launch a window to use the application.....

Output from terminal:-
" Using config file 'standard.conf'.
<_io.TextIOWrapper name='/home/gareth/blueproximity.log' mode='a' encoding='UTF-8'>"

Thanks in advance

@tiktaalik-dev
Copy link
Owner

Hi @GarethDownes ,

Sorry to hear something is not working well for you. Let's try to get it going.
First of all, could you check if your system has installed the required packages mentioned in the README file, please? What distro are you using?
Also could you check the'/home/gareth/blueproximity.log' file mentioned there? It may have some information.

Cheers,
Rigo

@GarethDownes
Copy link
Author

Hi @tiktaalik-dev,

Thanks for speedy reply. Currently running Ubuntu 20.04.01. I reinstalled all the modules listed in README and checked for dependencies issues.

Log file doesn't give much detail/errors.
Tue Mar 9 10:36:33 2021 blueproximity: started.
Tue Mar 9 11:03:53 2021 blueproximity: started.
Tue Mar 9 11:04:14 2021 blueproximity: started.
Tue Mar 9 11:09:26 2021 blueproximity: started.
Tue Mar 9 11:12:00 2021 blueproximity: started.
Tue Mar 9 11:13:22 2021 blueproximity: started.
Tue Mar 9 11:26:23 2021 blueproximity: started.
Tue Mar 9 11:47:41 2021 blueproximity: started.
Tue Mar 9 11:50:03 2021 blueproximity: started.

Thanks again
Gareth

@tiktaalik-dev
Copy link
Owner

Hi Gareth,

OK, we got that out of the way. Next step: By any chance are you using Gnome?...

@GarethDownes
Copy link
Author

Hi @tiktaalik-dev,

Yes indeed, I'm using Gnome.

@tiktaalik-dev
Copy link
Owner

tiktaalik-dev commented Mar 10, 2021

Hi Gareth,

Oh I see, that explains it all. It turns out that your log shows that the program is actually running but you can't see the main window due to a know issue with Gnome. The thing is that Gnome developers in their almighty wisdom decided that they didn't like "Status Icons" in spite of them being a common feature for every other Desktop Interface, and instead of accommodating a feature that a vast number of programs actually use (because it's mainstream) in a way that Gnome internally would translate that feature into something that suit the stylistic lines of their new design... They simply dropped it. No replacement. Nothing.
And well, the original author of Blueproximity designed this program long time ago relying on a Status Icon to present an easy way of knowing how is the program working and to show or hide the main window. That's why you can't see the window when you start the program and it seems that it may not be running. But it is!
When I updated the code to make it compatible with Python 3 I included a new library that provides status icons for every desktop interface but Gnome because I wasn't aware of that incompatibility as I'm not a Gnome user. Sorry about that oversight :-(
Now as for possible solutions: When I received the first reports about that problem I found out that there are a couple of Gnome extensions that sometimes help with status icons. Maybe you could try them and let me know if they work for you, please? That would hopefully address the problem, at least temporarily. I do intend to find a permanent solution modifying the code to accommodate Gnome but sadly I'm kind of swamped with work right now so I haven't been able of researching it yet. Sorry about that.
These are the extensions:

https://extensions.gnome.org/extension/615/appindicator-support/
https://extensions.gnome.org/extension/1031/topicons/

Hope that helps somehow in the meantime!

Cheers,
Rigo

@SpyPower
Copy link

SpyPower commented Sep 3, 2021

Hi,
I have the same issue as the OP here.
Unfortunately, neither of these extension work with your fork.

Regards,
Spyros


Edit:
The only top icon extension that is working on ubuntu 20.04.03 with gnome 3.36.8 is the following extension
https://extensions.gnome.org/extension/1674/topiconsfix/
It is ugly, but its working. Icon is available and clickable.

The gnome logs are filling a lot

Object Shell.TrayIcon (0x556c5978f6c0), has been already deallocated — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
_clutter_actor_fully_transform_vertices: assertion 'CLUTTER_IS_ACTOR (self)' failed
== Stack trace for context 0x556c4e4c5b10 ==
#0   7fff2578cdc0 b   /home/spyros/.local/share/gnome-shell/extensions/topiconsfix@[email protected]/extension.js:111 (21aae2856538 @ 22)
== Stack trace for context 0x556c4e4c5b10 ==
#0   7fff2578cdc0 b   /home/spyros/.local/share/gnome-shell/extensions/topiconsfix@[email protected]/extension.js:112 (21aae2856538 @ 310)
Object St.Bin (0x556c5160c0a0), has been already deallocated — impossible to access it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
clutter_actor_set_position: assertion 'CLUTTER_IS_ACTOR (self)' failed

by using the command journalctl -f -o cat /usr/bin/gnome-shell you can follow the errors.

@mxcxpx
Copy link

mxcxpx commented Aug 24, 2022

hello, i have also problem that it is not opening.
appimge is integrated. when i click on open. nothing happen
Linux mint 21 - cinnamon

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

No branches or pull requests

4 participants