[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Re (3): autostarting a terminal.



peasthope@shaw.ca wrote:
> Pontus Goffe wrote:
> > And what if the shellscript needs to be prefixed with sudo?

But sudo will want to ask you for your password.  If you are doing
that in a graphical context then you would use "gksudo" not "sudo".

> Certainly this desktop autostart technology has limitations.  I
> haven't found a way to execute a shell function in a terminal, aside
> from putting the function in a script.

Right.  A shell function is internal to the shell that loaded it.
Putting it in a shell script is the best way to do it.

> A specification for a ~/.config/autostart/*.desktop file is here.
> http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html

JFTR I think the ~/.config/autostart/*.desktop to autostart user
applications when there isn't otherwise any other startup file is a
fine way to do things.  It is portable across the current desktop
session manager environments (GNOME, KDE, LXDE, XFCE) that are popular
today.  Those (like me) that are not using those heavy desktops
already know what we need to do to start those up using our preferred
environments.  I am using them for other people when they want to
automatically start a web browser at graphical login time for example.

Bob

Attachment: signature.asc
Description: Digital signature


Reply to: