You are not logged in.

#1 2010-03-07 10:02:56

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Xfce and nm-applet (no autostart)

Hi,

NetworkManager's up and running, but II can't autostart nm-applet. There are similar threads like this, but the only way I can start nm-applet is this:

$ sudo nm-applet &

Any Ideas?

Offline

#2 2010-03-07 10:05:08

theimpaler
Member
Registered: 2010-03-07
Posts: 4

Re: Xfce and nm-applet (no autostart)

Have you tried adding

exec nm-applet

to your .xinitrc file?

Last edited by theimpaler (2010-03-07 10:05:31)

Offline

#3 2010-03-07 10:06:30

barzam
Member
From: Sweden
Registered: 2009-01-27
Posts: 277

Re: Xfce and nm-applet (no autostart)

How are you starting XFCE?

I start everything witn .xinitrc using Slim, just add the line there (it should be like this though: nm-applet --sm-disable &)

Offline

#4 2010-03-07 10:32:33

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Xfce and nm-applet (no autostart)

barzam wrote:

How are you starting XFCE?

I start everything witn .xinitrc using Slim, just add the line there (it should be like this though: nm-applet --sm-disable &)

I also use Slim. I had to create ~/.xinitrc (and make it executable smile ):

exec nm-applet --sm-disable &

Still, no cigar. Why should it be different from Xfce autostart?

Offline

#5 2010-03-07 10:44:58

barzam
Member
From: Sweden
Registered: 2009-01-27
Posts: 277

Re: Xfce and nm-applet (no autostart)

it should be like this


nm-applet --sm-disable &
exec startxfce4

Last edited by barzam (2010-03-07 10:45:15)

Offline

#6 2010-03-07 11:05:08

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Xfce and nm-applet (no autostart)

barzam wrote:

it should be like this


nm-applet --sm-disable &
exec startxfce4

It won't work either (I used to start Xfce via slim daemon). .xinitrc, Xfce autostart and things seem to be perfectly good solutions to another problem. Something prevents nm-applet from starting.

Offline

#7 2010-03-07 11:45:06

Roline
Member
From: Netherlands
Registered: 2009-12-05
Posts: 207
Website

Re: Xfce and nm-applet (no autostart)

There has been a nm-applet update..?


Bitbucket - DeviantART - Userstyles
*Currently Not Using Arch

Offline

#8 2010-03-07 12:34:51

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Xfce and nm-applet (no autostart)

Roline wrote:

There has been a nm-applet update..?

Can't tell, really big_smile . I've been just settling down, post install, like...

Offline

#9 2010-03-07 14:30:37

jarryson
Member
Registered: 2007-02-18
Posts: 298

Re: Xfce and nm-applet (no autostart)

nm-applet use polkit, so you must use gdm to login or use "ck-launch-session startxfce4" to start your session.

or the nm-applet won't show up.

Offline

#10 2010-03-07 15:40:48

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Xfce and nm-applet (no autostart)

Thanks!

~/.xinitrc:

#!/bin/bash
#exec nm-applet --sm-disable &
exec ck-launch-session startxfce4

exec nm-applet --sm-disable got back into Xfce Autostart. It works.

Does it mean than I'll have to do without Slim? Is there any penalty for using gdm (I've got legacy hardware)? It doesn't look too combersome:

Targets (3): devicekit-power-013-1  gnome-session-2.28.0-1  gdm-2.28.2-1 

Total Download Size:    2.29 MB
Total Installed Size:   10.14 MB

Proceed with installation? [Y/n] n

Offline

#11 2010-03-07 15:42:42

barzam
Member
From: Sweden
Registered: 2009-01-27
Posts: 277

Re: Xfce and nm-applet (no autostart)

Well if it works you don't have to change anything. I use Slim and nm-applet starts for me (using Awesome) without having gdm installed.

Offline

#12 2010-03-08 07:58:21

jarryson
Member
Registered: 2007-02-18
Posts: 298

Re: Xfce and nm-applet (no autostart)

you don't have to use gdm at all, use slim and ck-launch-session to start your sesssion is still works.

Note:use the following command to start your session will be better, or you may meet gvfs mount problem.

exec ck-launch-session dbus-launch --auto-syntax --exit-with-session startxfce4

Offline

#13 2012-06-21 13:09:29

Red_Raven
Member
From: Manila
Registered: 2012-06-01
Posts: 10
Website

Re: Xfce and nm-applet (no autostart)

i tried the suggestions above but still nm-applet does not autostart during start up. i tried placing the nm-applet --sm-disable & in my xinitrc but it still don't start, i have to manually start it by using alt+f2 or via terminal. any suggestions? what am I doing wrong?


"My mind rebels at stagnation. Give me problems, give me work, give me the most abstruse cryptogram, or the most intricate analysis, and I am in my own proper atmosphere. But I abhor the dull routine of existence. I crave for mental exaltation."
~ Sherlock Holmes, The Sign of Four: Chapter 1 - The Science of Deduction by Sir Arthur Conan Doyle circa 1890

Offline

#14 2012-06-21 13:27:30

drtic_cz
Member
From: Prague, Czech Republic
Registered: 2012-06-21
Posts: 3

Re: Xfce and nm-applet (no autostart)

Try to add nm-applet to "autostart" (don't have xfce in English, so maybe little bit different name) section in xfce settings manager.

Offline

Board footer

Powered by FluxBB