hp-systray-consume-session-param.patch 529 B

12345678910111213141516
  1. Index: hplip-3.10.5/systray.py
  2. ===================================================================
  3. --- hplip-3.10.5.orig/systray.py
  4. +++ hplip-3.10.5/systray.py
  5. @@ -48,6 +48,10 @@ if __name__ == '__main__':
  6. if os.getpgid(os.getpid()) != os.getpid():
  7. os.setsid()
  8. + if "-session" in sys.argv:
  9. + si = sys.argv.index("-session")
  10. + del sys.argv[si:si+2]
  11. +
  12. mod = module.Module(__mod__, __title__, __version__, __doc__, None,
  13. (GUI_MODE,), (UI_TOOLKIT_QT4, UI_TOOLKIT_QT3))