#844262 liferea: start with hidden main window no longer working

Package:
liferea
Source:
liferea
Description:
feed/news/podcast client with plugin support
Submitter:
Wolfgang Becker
Date:
2023-09-18 17:36:13 UTC
Severity:
normal
Tags:
#844262#5
Date:
2016-11-13 21:11:33 UTC
From:
To:
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.

#844262#10
Date:
2016-11-13 21:32:50 UTC
From:
To:
Hi Wolfgang

Upstream reworked liferea quite a bit. One of the things is that
iconification is dealt with via plugins. These plugins are disabled by
default. If you enable the iconification plugin, does it work again for you?

Paul

#844262#15
Date:
2016-11-13 21:35:38 UTC
From:
To:
[Resending again, because the mail host of the submitter rejected the
body of my previous mail, trying again unsigned.]

Hi Wolfgang

Upstream reworked liferea quite a bit. One of the things is that
iconification is dealt with via plugins. These plugins are disabled by
default. If you enable the iconification plugin, does it work again for you?

Paul

#844262#20
Date:
2016-11-13 23:12:56 UTC
From:
To:
No. I had to enable "Tray Icon (GNOME Classic)" plugin to get the
tray icon with the current release. Unfortunately command line
window state is ignored, no matter if that plugin is enabled or not.

Wolfgang

#844262#25
Date:
2016-11-14 20:25:49 UTC
From:
To:
Hi,

Interesting, on my (KDE) 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.

I am afraid from previous discussions upstream that they have a hard
time supporting tray icons on non-GNOME desktops. I'll report this issue
upstream, but I don't expect a solution soon.

Paul

#844262#32
Date:
2017-02-04 12:07:35 UTC
From:
To:
I have the same issue in XFCE. mainwindow-state is not honored.
#844262#37
Date:
2017-07-03 19:50:54 UTC
From:
To:
Dear Maintainer,

   * What led up to the situation?
	Normal setup/installation in Debian-Stretch
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
	Starting liferea with command
	"liferea  --mainwindow-state=hidden" does not hide the main window
   * What was the outcome of this action?
	starts in normal resizable window AND as tray icon
   * What outcome did you expect instead?
	same beheaviour as many generations before, at least since Wheezy -
just start with tray icon
	and obey what "man liferea" tells me:
	-w, --mainwindow-state=STATE
         Start  Liferea  with  its mainwindow in STATE:
		shown, iconified, hidden

#844262#42
Date:
2017-07-03 20:53:55 UTC
From:
To:
Workaround to solve this annoying behaviour:

Downgrade liferea and liferea-data to Jessie-Version 1.10.12-1

#844262#51
Date:
2018-10-22 11:06:51 UTC
From:
To:
Hi.
The fix from City-busz works for me. ( https://github.com/lwindolf/liferea/issues/447#issuecomment-327802562 )

I did the backports liferea 1.12.5-2 in debian 9.
The tray icon normally opens and closes the program.
The program starts normally (hidden) with the option " --mainwindow-state=hidden".

p.s. Sorry if something is unclear wrote. Using online translator
--- liferea-1.12.5.orig/plugins/trayicon.py +++ liferea-1.12.5/plugins/trayicon.py @@ -116,8 +116,6 @@ class TrayiconPlugin (GObject.Object, Li          self.window.connect("window-state-event", self.window_state_event_cb)          # show the window if it is hidden when starting liferea -        self.window.deiconify() -        self.window.show()          feedlist = self.shell.props.feed_list          self.feedlist_new_items_cb(feedlist) @@ -128,12 +126,11 @@ class TrayiconPlugin (GObject.Object, Li      def window_state_event_cb(self, widget, event):          "Hide window when minimize"          if event.changed_mask & event.new_window_state & Gdk.WindowState.ICONIFIED: -            self.window.deiconify()              self.window.hide() +            self.window.deiconify()      def trayicon_click(self, widget, data = None): -        self.window.deiconify() -        self.window.show() +        self.shell.toggle_visibility()      def trayicon_minimize_on_close(self, widget, event):          self.window.hide()
#844262#56
Date:
2018-10-22 18:05:07 UTC
From:
To:
Hi,

Thanks for your interest in this bug.

The upstream maintainer of liferea is not applying that patch. He is
much more knowledgeable on the behavior of liferea than me, so I am not
going to apply this patch without him doing the same. Apparently it
isn't so simple and depends a lot on which Desktop Environment you run.

Paul