tiktaalik-dev / blueproximity

Desktop application to lock/unlock your screen automatically based on detecting how close it's to another Bluetooth device (e.g. your mobile phone).
GNU General Public License v2.0
95 stars 28 forks source link

No icon on GNOME Shell with AppIndicators extension installed #6

Open logix2 opened 4 years ago

logix2 commented 4 years ago

I'm trying to use your BlueProximity fork on Ubuntu 20.04 with GNOME Shell (which has the AppIndicator / KStatusNotifier extension installed), but the GUI only runs the first time. Subsequent runs don't show the BlueProximity GUI and since there's also no tray icon showing up, it can't be used properly.

tiktaalik-dev commented 4 years ago

Hi logix2,

Thanks for reaching out. Could you start the program from a terminal, please? That way you may see some error messages. Try opening a terminal in the directory where you copied Blueproximity and then type this command: python3 proximity.py Let me know what you find, please.

Cheers

RDiSa commented 3 years ago

Hi tiktaalik-dev,

I have the same configuration and the same problem (no gui icon) of logix2. Launching directly python3 proximity.py showed a missing module, installed with sudo apt-get install python3-bluez, but the problem persists:

Thanks, R.

tiktaalik-dev commented 3 years ago

Hi @RDiSa,

Thanks for reaching out! Are you also using GNOME Shell? Sorry for the inconvenience, it's just that I don't use that myself so I didn't test it in that environment.

I'll do some research about it as soon as I can and comment again here when I fix it.

Have an excellent week ahead!

Cheers, Rigo.

RDiSa commented 3 years ago

Hi @tiktaalik-dev,

Yes, I'm using Gnome Shell and I've tested both X11 and Wayland. I have launched the 'normal' Gnome DE too, but in all the tests I can't see any icon relative to blueproximity.

The only thing I see is the Bluetooth indicator that appears every second (more or less) that indicates the Bluetooth connection with the phone. Nothing else...

Is there any possibility to raise a 'debug level' in the code? I've searched the code but I'm not so skilled... I was hoping for something that gives me a feedback on the strength of the signal received.

Thank you for your work! R.

tiktaalik-dev commented 3 years ago

Hey @RDiSa,

I'm beginning to research the problem, and from what I've found the problem is that the designers of GNOME simply decided that they don't like status icons so they removed support for them in their shell. They seem to have not realised that some status icons allow to have an application running in the background and then to display its window when needed, which is the case with Blueproximity. But I found that there's an extension for Gnome that supposedly adds support for status icons again. Could you try it and let me know how it works for you? Find it here:

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

This might help for now while I find a more native solution. Please let me know if it works!

Cheers, Rigo.

RDiSa commented 3 years ago

Hi,

I've just tried the gnome extension you suggested but nothing changed: no status icon... (I'm on Ubuntu 20.04 with Gnome Shell 3.36.8)

Any hope to have 'exposed' the signal strength in any other way? If not via the status icon color maybe in the log if active (and eventually with a debug flag?)

Thank you, Riccardo.

Il giorno ven 22 gen 2021 alle ore 15:52 Rodrigo Gambra < notifications@github.com> ha scritto:

Hey @RDiSa https://github.com/RDiSa,

I'm beginning to research the problem, and from what I've found the problem is that the designer of GNOME simply decided that they don't like status icons so they removed support for them in their shell. They seem to have not realised that some status icon allow to have an application running in the background and then to display its window when needed, which is the case with Blueproximity. But I found that there's an extension for Gnome that supposedly adds support for status icons again. Could you try it and let me know how it works for you? Find it here:

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

This might help for now while I find a more native solution. Please let me know if it works!

Cheers, Rigo.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tiktaalik-dev/blueproximity/issues/6#issuecomment-765457370, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGBBVMN4FCV67Y3UH7EK5PTS3GGMVANCNFSM4RW3UW4Q .

tiktaalik-dev commented 3 years ago

Hey @RDiSa, I've found another Gnome extension that apparently places icons in the top bar. Could you try it and report back on your results, please? Find it here:

https://extensions.gnome.org/extension/1031/topicons/

Thanks for your patience while I debug this annoyance! :-)

Cheers, Rigo

AlexGluck commented 3 years ago

@RDiSa For fedora 33 with gnome 3.38 i use this extension and have same issue.

Creating new config directory '/home/alexgluck/.blueproximity'.
/home/alexgluck/files/git_repos/private/blueproximity/proximity.py:1441: DeprecationWarning: Passing in an options dictionary to ConfigObj() is deprecated. Use **options instead.
  config = ConfigObj(os.path.join(conf_dir, _('standard') + '.conf'),
Creating new configuration.
Using config file 'standard'.

(proximity.py:1223621): Gtk-WARNING **: 22:30:25.489: Theme file for win8 has no directories
RDiSa commented 3 years ago

Hi,

thank you for the link: extension installed but no blueproximity icon... The extension works because now I have back the nextcloud icon! :-)

Cheers, Riccardo.

Il giorno dom 31 gen 2021 alle ore 15:58 Rodrigo Gambra < notifications@github.com> ha scritto:

Hey @RDiSa https://github.com/RDiSa, I've found another Gnome extension that apparently places icons in the top bar. Could you try it and report back on your results, please? Find it here:

https://extensions.gnome.org/extension/1031/topicons/

Thanks for your patience while I debug this annoyance! :-)

Cheers, Rigo

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tiktaalik-dev/blueproximity/issues/6#issuecomment-770395127, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGBBVMOWYCVU3I6RYT444SDS4VVXTANCNFSM4RW3UW4Q .

RDiSa commented 3 years ago

Hi,

Thank you for the link, I've tried installing this extension choosing the right gnome version but after the installation it goes in an 'error' state... I've tried removing everything else but still no lunk.

Cheers, Riccardo.

Il giorno dom 31 gen 2021 alle ore 20:44 Alex Gluck < notifications@github.com> ha scritto:

@RDiSa https://github.com/RDiSa For fedora 33 with gnome 3.38 i use this extension https://extensions.gnome.org/extension/3681/top-indicator-app/ and have same issue.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tiktaalik-dev/blueproximity/issues/6#issuecomment-770438878, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGBBVMIN4IDGKNTZF3UQKADS4WXITANCNFSM4RW3UW4Q .