liferea
liferea copied to clipboard
1.12-RC1: liferea doesn't honor "-w hidden" or "--mainwindow-state=iconified" anymore
This is a copy of bug 844262¹ reported in Debian:
++ Dear Maintainer, to run liferea I use an application autostart entry in Xfce. Command: 'liferea -w hidden'. This used to start liferea with just the tray icon visible. But the current version starts with visible main window.
Same effect when launching from command line:
wolfgang@pitr:~$ liferea -w hidden
(liferea:8810): Gtk-WARNING **: Failed to get the GNOME session proxy: The name org.gnome.SessionManager is not owned
(liferea:8810): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1214:18: Not using units is deprecated. Assuming 'px'.
(WebKitWebProcess:8824): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1214:18: Not using units is deprecated. Assuming 'px'.
Using the option --mainwindow-state=iconified instead of hidden also has no effect.
++
After a minor check I can add the following on my own KDE system: Interesting, on my system, the hidden option is honored when I have the Tray Icon disabled (which means I can't see liferea anywhere). Once I enable the plugin, liferea shows as you describe.
¹ https://bugs.debian.org/844262
From the comment in it :
# show the window if it is hidden when starting liferea
self.window.deiconify()
self.window.show()
The plugin is doing this on purpose. Perhaps related to this.
Same behaviour here under Debian Stretch with XFCE4.
My PR fixes the problem: https://github.com/lwindolf/liferea/pull/523
I'm planning to remove the safety from the plugin once there is a --no-plugins option.
Still if there are too many users having problems with it again, there might be no way to have it remain there.
The fix from City-busz works for me (Ubuntu Mate 16.04 / Liferea 1.12.1) Thanx
While waiting for a fix, one can use:
liferea & xdotool search --onlyvisible --classname --sync Liferea windowminimize
any update on this?
liferea & xdotool search --onlyvisible --classname --sync Liferea windowminimize
this no longer seems to be working, at least in debian.
@pixelplanetdev Not 100%. If a session manager remembers the command with which you started it will start the same way again. So not each start with --mainwindow-state=hidden is intentional.
Additionally due to loose coupling the plugins do not have access to CLI arguments :-(