liferea icon indicating copy to clipboard operation
liferea copied to clipboard

1.12-RC1: liferea doesn't honor "-w hidden" or "--mainwindow-state=iconified" anymore

Open paulgevers opened this issue 7 years ago • 9 comments

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

paulgevers avatar Nov 14 '16 20:11 paulgevers

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.

Leiaz avatar Nov 15 '16 20:11 Leiaz

Same behaviour here under Debian Stretch with XFCE4.

mase76 avatar Jan 10 '17 16:01 mase76

My PR fixes the problem: https://github.com/lwindolf/liferea/pull/523

City-busz avatar Sep 07 '17 13:09 City-busz

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.

lwindolf avatar Jan 17 '18 17:01 lwindolf

The fix from City-busz works for me (Ubuntu Mate 16.04 / Liferea 1.12.1) Thanx

DocHifi avatar Feb 10 '18 18:02 DocHifi

While waiting for a fix, one can use:

liferea & xdotool search --onlyvisible --classname --sync Liferea windowminimize

antoyo avatar Jun 08 '19 21:06 antoyo

any update on this?

raniesantos avatar Mar 21 '20 22:03 raniesantos

liferea & xdotool search --onlyvisible --classname --sync Liferea windowminimize

this no longer seems to be working, at least in debian.

zero77 avatar Sep 05 '20 14:09 zero77

@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 :-(

lwindolf avatar May 09 '22 09:05 lwindolf