Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dbus] LibreOffice's menubar has disappeared #3399

Closed
corecontingency opened this issue May 4, 2020 · 3 comments
Closed

[dbus] LibreOffice's menubar has disappeared #3399

corecontingency opened this issue May 4, 2020 · 3 comments

Comments

@corecontingency
Copy link
Contributor

corecontingency commented May 4, 2020

Broken in commit 8744e08.

See here:

LibreOffice

This issue is fixed when the line dbus-user none is commented out.

Nothing in sudo journalctl.

This is the log when running the default profile (which doesn't have the menubar):
[user@mycomputer ~]$ firejail lowriter
Reading profile /etc/firejail/lowriter.profile
Reading profile /etc/firejail/libreoffice.profile
Reading profile /etc/firejail/allow-java.inc
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-exec.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Parent pid 10303, child pid 10304
Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set.
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Warning: not remounting /run/user/1000/gvfs
Blacklist violations are logged to syslog
Child process initialized in 71.46 ms

** (soffice:14): CRITICAL **: 00:05:11.730: void g_lo_menu_insert_section(GLOMenu*, gint, const gchar*, GMenuModel*): assertion 'G_IS_LO_MENU (menu)' failed

(soffice:14): Gtk-CRITICAL **: 00:05:11.730: gtk_menu_bar_new_from_model: assertion 'G_IS_MENU_MODEL (model)' failed

(soffice:14): Gtk-CRITICAL **: 00:05:11.731: gtk_widget_insert_action_group: assertion 'GTK_IS_WIDGET (widget)' failed

(soffice:14): Gtk-CRITICAL **: 00:05:11.731: gtk_widget_set_hexpand: assertion 'GTK_IS_WIDGET (widget)' failed

(soffice:14): Gtk-CRITICAL **: 00:05:11.731: gtk_container_add: assertion 'GTK_IS_WIDGET (widget)' failed

(soffice:14): GLib-GObject-WARNING **: 00:05:11.731: invalid (NULL) pointer instance

(soffice:14): GLib-GObject-CRITICAL **: 00:05:11.731: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(soffice:14): GLib-GObject-WARNING **: 00:05:11.731: invalid (NULL) pointer instance

(soffice:14): GLib-GObject-CRITICAL **: 00:05:11.731: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(soffice:14): Gtk-CRITICAL **: 00:05:11.731: gtk_widget_get_style_context: assertion 'GTK_IS_WIDGET (widget)' failed

(soffice:14): Gtk-CRITICAL **: 00:05:11.882: gtk_widget_get_style_context: assertion 'GTK_IS_WIDGET (widget)' failed

(soffice:14): Gtk-CRITICAL **: 00:05:11.888: gtk_widget_get_style_context: assertion 'GTK_IS_WIDGET (widget)' failed

** (soffice:14): CRITICAL **: 00:05:11.892: void g_lo_menu_insert_section(GLOMenu*, gint, const gchar*, GMenuModel*): assertion 'G_IS_LO_MENU (menu)' failed

(soffice:14): Gtk-CRITICAL **: 00:05:11.893: gtk_menu_bar_new_from_model: assertion 'G_IS_MENU_MODEL (model)' failed

(soffice:14): Gtk-CRITICAL **: 00:05:11.893: gtk_widget_insert_action_group: assertion 'GTK_IS_WIDGET (widget)' failed

(soffice:14): Gtk-CRITICAL **: 00:05:11.893: gtk_widget_set_hexpand: assertion 'GTK_IS_WIDGET (widget)' failed

(soffice:14): Gtk-CRITICAL **: 00:05:11.893: gtk_container_add: assertion 'GTK_IS_WIDGET (widget)' failed

(soffice:14): GLib-GObject-WARNING **: 00:05:11.893: invalid (NULL) pointer instance

(soffice:14): GLib-GObject-CRITICAL **: 00:05:11.893: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(soffice:14): GLib-GObject-WARNING **: 00:05:11.893: invalid (NULL) pointer instance

(soffice:14): GLib-GObject-CRITICAL **: 00:05:11.893: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(soffice:14): Gtk-CRITICAL **: 00:05:11.893: gtk_widget_get_style_context: assertion 'GTK_IS_WIDGET (widget)' failed

Parent is shutting down, bye...
And the log when commenting out `dbus-user none` (where the menu bar is present):
[user@mycomputer ~]$ firejail lowriter
Reading profile /etc/firejail/lowriter.profile
Reading profile /etc/firejail/libreoffice.profile
Reading profile /etc/firejail/allow-java.inc
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-exec.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Parent pid 13014, child pid 13015
Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set.
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Warning: not remounting /run/user/1000/gvfs
Blacklist violations are logged to syslog
Child process initialized in 100.08 ms

Parent is shutting down, bye...
@rusty-snake
Copy link
Collaborator

I wanted to remove it because it was still in trouble. Missed it somewhere. Can you try:
firejail --dbus-user.own=org.libreoffice.LibreOfficeIpc0 /usr/bin/libreoffice

@corecontingency corecontingency changed the title LibreOffice's menubar has disappeared [dbus] LibreOffice's menubar has disappeared May 4, 2020
@corecontingency
Copy link
Contributor Author

Didn't seem to work, unfortunately.

debug output
[user@mycomputer Pictures]$ firejail --dbus-user.own=org.libreoffice.LibreOfficeIpc0 /usr/bin/libreoffice
Reading profile /etc/firejail/libreoffice.profile
Reading profile /etc/firejail/allow-java.inc
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-exec.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Ignoring "dbus-user.own org.libreoffice.LibreOfficeIpc0".
Parent pid 4203, child pid 4204
Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set.
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Warning: not remounting /run/user/1000/gvfs
Blacklist violations are logged to syslog
Child process initialized in 68.54 ms

** (soffice:18): CRITICAL **: 00:53:14.211: void g_lo_menu_insert_section(GLOMenu*, gint, const gchar*, GMenuModel*): assertion 'G_IS_LO_MENU (menu)' failed

(soffice:18): Gtk-CRITICAL **: 00:53:14.211: gtk_menu_bar_new_from_model: assertion 'G_IS_MENU_MODEL (model)' failed

(soffice:18): Gtk-CRITICAL **: 00:53:14.211: gtk_widget_insert_action_group: assertion 'GTK_IS_WIDGET (widget)' failed

(soffice:18): Gtk-CRITICAL **: 00:53:14.211: gtk_widget_set_hexpand: assertion 'GTK_IS_WIDGET (widget)' failed

(soffice:18): Gtk-CRITICAL **: 00:53:14.211: gtk_container_add: assertion 'GTK_IS_WIDGET (widget)' failed

(soffice:18): GLib-GObject-WARNING **: 00:53:14.211: invalid (NULL) pointer instance

(soffice:18): GLib-GObject-CRITICAL **: 00:53:14.211: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(soffice:18): GLib-GObject-WARNING **: 00:53:14.211: invalid (NULL) pointer instance

(soffice:18): GLib-GObject-CRITICAL **: 00:53:14.211: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(soffice:18): Gtk-CRITICAL **: 00:53:14.211: gtk_widget_get_style_context: assertion 'GTK_IS_WIDGET (widget)' failed

(soffice:18): Gtk-CRITICAL **: 00:53:14.224: gtk_widget_get_style_context: assertion 'GTK_IS_WIDGET (widget)' failed

(soffice:18): Gtk-CRITICAL **: 00:53:14.229: gtk_widget_get_style_context: assertion 'GTK_IS_WIDGET (widget)' failed

(soffice:18): Gtk-CRITICAL **: 00:53:14.235: gtk_widget_get_style_context: assertion 'GTK_IS_WIDGET (widget)' failed

(soffice:18): Gtk-CRITICAL **: 00:53:14.240: gtk_widget_get_style_context: assertion 'GTK_IS_WIDGET (widget)' failed

(soffice:18): Gtk-CRITICAL **: 00:53:14.250: gtk_widget_get_style_context: assertion 'GTK_IS_WIDGET (widget)' failed

(soffice:18): Gtk-CRITICAL **: 00:53:14.256: gtk_widget_get_style_context: assertion 'GTK_IS_WIDGET (widget)' failed

** (soffice:18): CRITICAL **: 00:53:14.268: void g_lo_menu_insert_section(GLOMenu*, gint, const gchar*, GMenuModel*): assertion 'G_IS_LO_MENU (menu)' failed

(soffice:18): Gtk-CRITICAL **: 00:53:14.269: gtk_menu_bar_new_from_model: assertion 'G_IS_MENU_MODEL (model)' failed

(soffice:18): Gtk-CRITICAL **: 00:53:14.269: gtk_widget_insert_action_group: assertion 'GTK_IS_WIDGET (widget)' failed

(soffice:18): Gtk-CRITICAL **: 00:53:14.269: gtk_widget_set_hexpand: assertion 'GTK_IS_WIDGET (widget)' failed

(soffice:18): Gtk-CRITICAL **: 00:53:14.269: gtk_container_add: assertion 'GTK_IS_WIDGET (widget)' failed

(soffice:18): GLib-GObject-WARNING **: 00:53:14.269: invalid (NULL) pointer instance

(soffice:18): GLib-GObject-CRITICAL **: 00:53:14.269: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(soffice:18): GLib-GObject-WARNING **: 00:53:14.269: invalid (NULL) pointer instance

(soffice:18): GLib-GObject-CRITICAL **: 00:53:14.269: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(soffice:18): Gtk-CRITICAL **: 00:53:14.269: gtk_widget_get_style_context: assertion 'GTK_IS_WIDGET (widget)' failed

** (soffice:18): CRITICAL **: 00:53:16.668: void g_lo_menu_insert_section(GLOMenu*, gint, const gchar*, GMenuModel*): assertion 'G_IS_LO_MENU (menu)' failed

(soffice:18): Gtk-CRITICAL **: 00:53:16.669: gtk_menu_bar_new_from_model: assertion 'G_IS_MENU_MODEL (model)' failed

(soffice:18): Gtk-CRITICAL **: 00:53:16.669: gtk_widget_insert_action_group: assertion 'GTK_IS_WIDGET (widget)' failed

(soffice:18): Gtk-CRITICAL **: 00:53:16.669: gtk_widget_set_hexpand: assertion 'GTK_IS_WIDGET (widget)' failed

(soffice:18): Gtk-CRITICAL **: 00:53:16.669: gtk_container_add: assertion 'GTK_IS_WIDGET (widget)' failed

(soffice:18): GLib-GObject-WARNING **: 00:53:16.669: invalid (NULL) pointer instance

(soffice:18): GLib-GObject-CRITICAL **: 00:53:16.669: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(soffice:18): GLib-GObject-WARNING **: 00:53:16.669: invalid (NULL) pointer instance

(soffice:18): GLib-GObject-CRITICAL **: 00:53:16.669: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(soffice:18): Gtk-CRITICAL **: 00:53:16.669: gtk_widget_get_style_context: assertion 'GTK_IS_WIDGET (widget)' failed

** (soffice:18): CRITICAL **: 00:53:16.804: void g_lo_menu_insert_section(GLOMenu*, gint, const gchar*, GMenuModel*): assertion 'G_IS_LO_MENU (menu)' failed

(soffice:18): Gtk-CRITICAL **: 00:53:16.805: gtk_menu_bar_new_from_model: assertion 'G_IS_MENU_MODEL (model)' failed

(soffice:18): Gtk-CRITICAL **: 00:53:16.805: gtk_widget_insert_action_group: assertion 'GTK_IS_WIDGET (widget)' failed

(soffice:18): Gtk-CRITICAL **: 00:53:16.805: gtk_widget_set_hexpand: assertion 'GTK_IS_WIDGET (widget)' failed

(soffice:18): Gtk-CRITICAL **: 00:53:16.805: gtk_container_add: assertion 'GTK_IS_WIDGET (widget)' failed

(soffice:18): GLib-GObject-WARNING **: 00:53:16.805: invalid (NULL) pointer instance

(soffice:18): GLib-GObject-CRITICAL **: 00:53:16.805: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(soffice:18): GLib-GObject-WARNING **: 00:53:16.805: invalid (NULL) pointer instance

(soffice:18): GLib-GObject-CRITICAL **: 00:53:16.805: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(soffice:18): Gtk-CRITICAL **: 00:53:16.805: gtk_widget_get_style_context: assertion 'GTK_IS_WIDGET (widget)' failed

Parent is shutting down, bye...

@rusty-snake
Copy link
Collaborator

Yeah, from that what I saw libreoffice is using only instance addresses (e.g. :1.47) and no named.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants