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

Caffeine gets disabled even when auto enable applications are running #7

Open
vjjustin opened this issue Jan 16, 2013 · 14 comments
Open

Comments

@vjjustin
Copy link

When I have two or more applications (say vlc and evince) on the 'auto enable caffeine' list, and when I start vlc, caffeine gets enabled. Tthen I start evince. Now if I quit vlc, caffeine gets disabled, though evince is still running.

The application that enables caffeine also disables it, irrespective of the status (running or not) of other applications in the 'auto enable caffeine' list. Ideally caffeine should disable only if no other applications in the auto enable list is currently running.

@eonpatapon
Copy link
Owner

Caffeine should handle correctly mulitple applications just fine. Actually I can't reproduce your issue with multiple applications. I couldn't test evince since it seems hidden on Archlinux, but with other applications it works fine.

@Mystro256
Copy link

On fedora, Caffeine never gets disabled for me. I just assumed that the extension only enables when the program is opened, not closed.

Is it supposed to disable it automatically?

@eonpatapon
Copy link
Owner

Yes it should

@Mystro256
Copy link

Hmm, well I'm using 3.6/fedora 18 and I got the extension off of here: https://extensions.gnome.org/extension/517/caffeine/

It seems to happen with all applications, let me know if there's anything I can do to help fix it.

@eonpatapon
Copy link
Owner

Do you enable Caffeine manually, before running any application ?

Can you try without any other extension ?

Thanks

@vjjustin
Copy link
Author

Caffeine should handle correctly mulitple applications just fine

Can you test this for me, with 2 application both in the caffeine autoenable list?

  1. Start app 1 (caffeine will be enabled now).
  2. Start app 2.
  3. Close app 1 (caffeine will be disabled now).

@eonpatapon
Copy link
Owner

@justinstories that's what I do yes. Caffeine gets disabled only when app1 and app2 are closed

@vjjustin
Copy link
Author

After step 3, you still has caffeine enabled?
For me, caffeine gets disabled when I close the first application (application which enabled it). I tried with different applications but it is the same always. Ubuntu 12.10 64 bit, in case that helps.

@eonpatapon
Copy link
Owner

@justinstories at step 3, yes it is enabled. Can you try with all other extensions disabled ?

@eonpatapon
Copy link
Owner

@justinstories are you sure that Caffeine gets enabled with the second application your are using ?

@vjjustin
Copy link
Author

Even with two instances of the same application, caffeine gets disabled when the first window is closed.

@eonpatapon
Copy link
Owner

Is it still happening with the latest code ?

Thanks

@earthquakefish
Copy link

It's happening on Opensuse 13.1 with GNOME 3.10.2. If I open one instance of Firefox caffeine notifies me it's enabled. When I open another instance of Firefox it stays enabled (no notification) and if I close one of either instance of Firefox caffeine becomes disabled even though Firefox is still running. I just cloned the repo today so the code should be the latest?

@eonpatapon
Copy link
Owner

Yes, and sorry I can't reproduce this issue.

You can control the inhibition like that if you have some time:

  • install and run d-bus
  • search org.gnome.SessionManager in the session bus
  • caffeine is disabled
  • run firefox
  • caffeine is enabled
  • click on org.gnome.SessionManager to refresh the list of objects
  • in org.gnome.SessionManager you should have a /org/gnome/SessionManager/InhibitorXX
  • double-click on /org/gnome/SessionManager/InhibitorXX, open org.gnome.SessionManager.Inhibitor inside, double click on the GetAppId() method, click on "execute", the output should be "firefox.desktop"
  • run another firefox windows
  • you should have another /org/gnome/SessionManager/InhibitorXX, app_id should be also "firefox.desktop"
  • close one window, one of the two /org/gnome/SessionManager/InhibitorXX is gone
  • caffeine still enabled
  • close last one, no more /org/gnome/SessionManager/InhibitorXX
  • caffeine is disabled

eonpatapon pushed a commit that referenced this issue Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants