From the developer, Darren Salt: https://github.com/dsalt/devilspie2/issues/11#issuecomment-2424281111

'"Just had another poke at this… /looks like/ emacs is doing things to the window shortly after opening it, and that's conflicting with what devilspie2 is told to do.

Waiting for a short time seems to be enough to work around this.

if  get_class_instance_name()==  "emacs" then
  os.execute("sleep 0.5")-- ← 💤
  maximize()
  set_window_workspace(2)
end " Workaround documentation: Documenting use of sleep to defer actions briefly. - https://github.com/dsalt/devilspie2/pull/27

Reply via email to