Git Product home page Git Product logo

Comments (16)

arnuschky avatar arnuschky commented on June 14, 2024 5

I solved this by starting all notification area applets using dbus-launch. For example for starting nm-applet from my .i3/config:

exec --no-startup-id dbus-launch nm-applet

from i3-gnome.

tenllado avatar tenllado commented on June 14, 2024 2

Hi:

I solved this by changing the DesktopNames entry in the i3-gnome.desktop to

DesktopNames=GNOME-Flashback;GNOME;

This way, when the session starts all the applications in /etc/xdg/autostart, that are configured to start with the gnome-flashback session, also start with the i3-gnome session. At least on debian, you have one that is for the nm-applet (gnome-flashback-nm-applet.desktop),

from i3-gnome.

jcstr avatar jcstr commented on June 14, 2024

Hi,

Can you make sure that you have tray_output <...> under bar { } section?

i'll share you the docs of i3 for more info: http://i3wm.org/docs/userguide.html#_tray_output

from i3-gnome.

ytzemih avatar ytzemih commented on June 14, 2024

Hi,

yes, that's how the section of my config looks like:

...
exec --no-startup-id "xrandr --output eDP-1 --primary"
...
exec --no-startup-id /usr/lib/gnome-settings-daemon/gsd-xsettings
exec_always --no-startup-id gnome-power-manager
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec --no-startup-id gnome-flashback
exec_always --no-startup-id nm-applet 
...
bar {
        tray_output primary
        status_command i3status -c ~/.config/i3/i3status.conf
}

I tried to put the bar statement before the execs but it didn't change anything. Additionally, when I start nm-applet in my console nothing happens. However, in my i3 only session it works as expected.

from i3-gnome.

jcstr avatar jcstr commented on June 14, 2024

Sorry for my late answer,

Well, definitely it's an strange behavior, let me get more info about nm-applet and similar issues.

from i3-gnome.

ytzemih avatar ytzemih commented on June 14, 2024

It's alright. Thanks.

from i3-gnome.

jcstr avatar jcstr commented on June 14, 2024

@ytzemih,
I just reproduced your situation and it result the same for me, so, my first thoughts are that some GNOME components are doing something that modifies the behavior of i3, and my recent experience of something like that was about adding gnome-flashback to the config, and the wallpaper started to get managed by GNOME, so, could you hide gnome-flashback of your i3 config and share what happens?

from i3-gnome.

muktupavels avatar muktupavels commented on June 14, 2024

It is simply not autostarted anymore under GNOME:
https://gitlab.gnome.org/GNOME/network-manager-applet/commit/2a7336451cb6f066dd7ea80bf9faed40881b0ebf

If you have installed gnome-flashback and DesktopNames include GNOME-Flashback then it should be autostarted, because gnome-flashback installs custom autostart file:
https://gitlab.gnome.org/GNOME/gnome-flashback/blob/master/data/autostart/gnome-flashback-nm-applet.desktop.in

Other option might be to start manually or you could try to add nm-applet to RequiredComponents, but I don't remember what gnome-session does if desktop file has NotShowIn=GNOME. It still might not be started...

from i3-gnome.

jcstr avatar jcstr commented on June 14, 2024

It is simply not autostarted anymore under GNOME:
gitlab.gnome.org/GNOME/network-manager-applet/commit/2a7336451cb6f066dd7ea80bf9faed40881b0ebf

oh, i didn't noticed that, thanks for sharing.

Other option might be to start manually or you could try to add nm-applet to RequiredComponents, but I don't remember what gnome-session does if desktop file has NotShowIn=GNOME. It still might not be started...

I think that this can be adapted to do so.

I'll do the test and check if it works.

from i3-gnome.

ytzemih avatar ytzemih commented on June 14, 2024

@jcstr Hi, sorry for my late answer: Excluded the gnome-flashback line from my i3 config and restarted gdm and the session, same behaviour: no nm-applet (probably unsurprising in presence of @muktupavels hint). I guess I can't be of any help at the moment. Thanks for checking a fix, anyway.

from i3-gnome.

arnuschky avatar arnuschky commented on June 14, 2024

I have the same problem. Any luck with this?

@ytzemih I am using Ubuntu 18.04 too. However it uses Gnome 3.28 - not sure if that's relevant (this project's requirements say it needs Gnome 3.30).

from i3-gnome.

arnuschky avatar arnuschky commented on June 14, 2024

Starting nm-applet yields the following error:

(nm-applet:7427): Gtk-WARNING **: 21:42:17.189: Can't set a parent on widget which has a parent

(nm-applet:7427): Gtk-CRITICAL **: 21:42:21.872: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

(nm-applet:7427): Gtk-CRITICAL **: 21:42:21.872: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

from i3-gnome.

arnuschky avatar arnuschky commented on June 14, 2024

@ytzemih by any chance did you upgrade too from 16.04?

from i3-gnome.

ytzemih avatar ytzemih commented on June 14, 2024

@arnuschky I did a new 18.04 install. Got the same error, but your last suggestion also works for me. Thanks! dbus-launch is the key :)

from i3-gnome.

kunniva avatar kunniva commented on June 14, 2024

@tenllado thanks, it worked for me :)

from i3-gnome.

jcstr avatar jcstr commented on June 14, 2024

due to resolution to this issue, is closed now.

from i3-gnome.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.