elementary / wingpanel-indicator-power

Wingpanel Power Indicator
GNU General Public License v3.0
24 stars 15 forks source link

Tries to monitor process 0, which does not exist. #227

Closed jeremypw closed 10 months ago

jeremypw commented 2 years ago

What Happened?

When running wingpanel in a terminal it was noticed that many warnings like

File '/proc/0/cmdline' doesn't exist.

were produced.

This was tracked to a process id of zero was returned by Bamf.Window for certain app windows - in particular those related to a flatpak app.

Steps to Reproduce

  1. In a terminal, stop the wingpanel running with sudo killall io.elementary.wingpanel x 2
  2. Run wingpanel with io.elementary.wingpanel
  3. Start some flatpak apps
  4. Open the power indicator
  5. Terminal warnings appear about non-existent process

Expected Behavior

The process id should be sanity checked.

OS Version

6.x (Odin)

Software Version

Compiled from git

Log Output

No response

Hardware Info

No response

jeremypw commented 2 years ago

This may be resolved by resolving #208.