RE: Starting applications automaticaly

2005-04-18 Thread Darren Henderson
On Sat, 16 Apr 2005, Brian Kinsey wrote:
That is not working. If I start a terminal window and save current session,
the terminal window is there again when I log back in. The same does not
happen with xbattbar.
You'll have to find another method for things you wish to start 
automatically as root while logged in as another user, most of them less 
then desireable. However, that probably isn't the issue.

I don't use xbattbar but I doubt there is any compelling reason it has to 
be started as root. Check in /dev and see who has rights to r/w apm and 
apmctl (on 4.x). I believe the default is root and members of operator. 
Make yourself a member of the operator group.

If the permissions aren't like that on your system them change them 
accordingly under 4.x or tweak /etc/devfs.conf on 5.x (not sure where in 
the 5.x series this started certainly 5.2 and beyond)

As to your question... Look in /usr/local/share/apps/kdm/sessions and see 
what kdm does for xfce. kdm invokes /usr/X11R6/bin/startxfce4. Take a look 
at startxfce4. It essentially looks for $HOME/.config/xinitrc, if not 
found it invokes /usr/X11R6/etc/xdg/xfce4/xinitrc. The default install 
doesn't create the former. If you want to change the startup then grab a 
copy of the latter creating the former and alter as desired.

-Darren
__
Darren Henderson  [EMAIL PROTECTED]
   Help fight junk e-mail, visit http://www.cauce.org/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Starting applications automaticaly

2005-04-16 Thread Dan Nelson
In the last episode (Apr 16), Brian Kinsey said:
 I am using xfce on FreeBSD 5.3. How do I make an application start up
 automatically when xfce starts up? I am trying to learn on a laptop and I
 would like to have xbattbar start up automatically. Right now, I open a
 terminal window and type xhost +, su, xbattbar and then I have to leave the
 terminal window open. 

Xfce is just a window manager, right?  Run xbattbar in whatever script
file you start xfce from (usually .xinitrc).

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Starting applications automaticaly

2005-04-16 Thread Anthony M. Agelastos
As far as the xhost command goes, have you tried putting a  at the 
end, i.e.
xhost +, su, xbattbar 
That backgrounds the job, which should allow you to close the xterm 
from which it sprang (I could be wrong as I'm a newbie as well).

On Apr 16, 2005, at 7:16 PM, Brian Kinsey wrote:
I am using xfce on FreeBSD 5.3. How do I make an application start up
automatically when xfce starts up? I am trying to learn on a laptop 
and I
would like to have xbattbar start up automatically. Right now, I open a
terminal window and type xhost +, su, xbattbar and then I have to 
leave the
terminal window open.


I know this is probably in the handbook (which I admittedly have not 
read in
its entirety), but I can not find anything in the ToC, the index, or 
from
searching Google. Maybe I'm searching for the wrong thing? Any help, 
even if
it is just a reference to the proper place to look in the handbook, 
would be
greatly appreciated.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Starting applications automaticaly

2005-04-16 Thread Brian Kinsey
I don't know what script file starts xfce. I start it by typing kdm. Then I
have an option of starting kde or xfce. 

There is no .xinitrc on my computer, but there is a .kderc in my home
directory. I tried adding a line there that had xbattbar , but that
didn't work. 

I also noticed that there is an Autostart directory under the .kde directory
in my home directory. Do I need to add a script there? If so, what would
this script look like?

-Original Message-
From: Dan Nelson [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 16, 2005 8:37 PM
To: Brian Kinsey
Cc: freebsd-questions@freebsd.org
Subject: Re: Starting applications automaticaly

In the last episode (Apr 16), Brian Kinsey said:
 I am using xfce on FreeBSD 5.3. How do I make an application start up
 automatically when xfce starts up? I am trying to learn on a laptop and I
 would like to have xbattbar start up automatically. Right now, I open a
 terminal window and type xhost +, su, xbattbar and then I have to leave
the
 terminal window open. 

Xfce is just a window manager, right?  Run xbattbar in whatever script
file you start xfce from (usually .xinitrc).

-- 
Dan Nelson
[EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Starting applications automaticaly

2005-04-16 Thread Brian Kinsey
That is not working. If I start a terminal window and save current session,
the terminal window is there again when I log back in. The same does not
happen with xbattbar.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Darren Henderson
Sent: Saturday, April 16, 2005 11:15 PM
To: Brian Kinsey
Cc: freebsd-questions@freebsd.org
Subject: RE: Starting applications automaticaly

On Sat, 16 Apr 2005, Brian Kinsey wrote:

 I don't know what script file starts xfce. I start it by typing kdm. Then
I
 have an option of starting kde or xfce.

Start xfce4, get whatever applications running you want then save the 
session. Next time it loads it will restart the session.

__
Darren Henderson  [EMAIL PROTECTED]

Help fight junk e-mail, visit http://www.cauce.org/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]