redhog / InfiniteGlass

Window manager with infinite desktop, infinite zoom and infinite window resolution
https://redhog.github.io/InfiniteGlass/
GNU General Public License v3.0
35 stars 5 forks source link

Restart stopped components #43

Closed redhog closed 4 years ago

redhog commented 4 years ago

The result from glass-action component restart glass-theme is in... rolling drums...

59
Traceback (most recent call last):
  File "/InfiniteGlass/glass-lib/InfiniteGlass/display.py", line 30, in handle_x_event
    if handler(event):
  File "/InfiniteGlass/glass-lib/InfiniteGlass/display.py", line 101, in handler
    return fn(self, event)
  File "/InfiniteGlass/glass-lib/InfiniteGlass/window.py", line 72, in handler
    return fn(self, event)
  File "/InfiniteGlass/glass-ghosts/glass_ghosts/components.py", line 24, in PropertyNotify
    self.start_component(spec)
  File "/InfiniteGlass/glass-ghosts/glass_ghosts/components.py", line 63, in start_component
    del self.components_by_pid[pid]
KeyError: 59
redhog commented 4 years ago

Ah right... because glass-theme exits immediately after the initial zoom, and is never restarted.... But, an explicit restart should start it even if it isn't running. That's a bug I guess...

redhog commented 4 years ago

Fixed in latest commit