ray | 1 Dec 2006 08:07
Picon

start an X application automatically

Hi, All
I want to start an X application automatically when I log on.  I have tried  to do this with  gnome-session-save,  but it says this application cannot be saved to session.  Any alternative method?  Thanks.

_______________________________________________
gnome-list mailing list
gnome-list <at> gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-list
Ritesh Khadgaray | 1 Dec 2006 10:13
Picon

Re: start an X application automatically

On Fri, 2006-12-01 at 15:07 +0800, ray wrote:
> Hi, All
> I want to start an X application automatically when I log on.  I have
> tried  to do this with  gnome-session-save,  but it says this
> application cannot be saved to session.  Any alternative method? 

Preferences->More Preferences->Session->Startup Programs

>  Thanks.
> _______________________________________________
> gnome-list mailing list
> gnome-list <at> gnome.org
> http://mail.gnome.org/mailman/listinfo/gnome-list
--

-- 
Ritesh Khadgaray
LinuX N Stuff
Ph: +919822394463
Eat Right, Exercise, Die Anyway.
Attachment (smime.p7s): application/x-pkcs7-signature, 3233 bytes
_______________________________________________
gnome-list mailing list
gnome-list <at> gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-list
Stefano Sabatini | 1 Dec 2006 10:54
X-Face
Picon
Favicon

Re: start an X application automatically

On date Friday 2006-12-01 15:07:16 +0800, ray wrote:
> Hi, All
> I want to start an X application automatically when I log on.  I have tried
> to do this with  gnome-session-save,  but it says this application cannot be
> saved to session.  Any alternative method?  Thanks.

Launch gnome-session-properties, then from the gui select:

Startup programs --> add
and write the complete path of the application you want to start on
log on.

Obviously to get this working you have to start gnome with gnome-session.

HTH
--

-- 
Stefano Sabatini
Linux user number 337176 (see http://li.count.org)
William Case | 1 Dec 2006 11:02
Favicon

Why doesn't this sudo script using zenity work??

Hi;

I have tried several variations of the following script and googled for
some clues. No joy.

#! /bin/bash
# Open nautilus as root
#

sudo nautilus --no-desktop --browser
if zenity --entry \
	--title="Browse files as root" \
    --text="Enter your _password:" \
    --entry-text "" \
    --hide-text
then echo $?
else echo "No password entered"
fi

# End

sudo nautilus --no-desktop --browser works on the command line.
Why doesn't this sudo script using zenity work?? 

--

-- 
Regards Bill
Stefano Sabatini | 1 Dec 2006 12:05
X-Face
Picon
Favicon

Re: Why doesn't this sudo script using zenity work??

On date Friday 2006-12-01 05:02:30 -0500, William Case wrote:
> Hi;
> 
> I have tried several variations of the following script and googled for
> some clues. No joy.
> 
> #! /bin/bash
> # Open nautilus as root
> #
>  
> sudo nautilus --no-desktop --browser
> if zenity --entry \
> 	--title="Browse files as root" \
>     --text="Enter your _password:" \
>     --entry-text "" \
>     --hide-text
> then echo $?
> else echo "No password entered"
> fi
> 
> # End
> 
> sudo nautilus --no-desktop --browser works on the command line.
> Why doesn't this sudo script using zenity work?? 

Because you need sudo to read the password passed by zenity on stdout.
So you have to do:

zenity --entry \
       --title="Browse files as root" \
       --text="Enter your _password:" \
       --entry-text "" \
       --hide-text \
| sudo -S nautilus --no-desktop --browser

then control the return code of sudo to check that the password
entered was correct.

HTH   
Regards
--

-- 
Stefano Sabatini
Linux user number 337176 (see http://li.count.org)
Calum Benson | 1 Dec 2006 14:29
Picon

Re: I must be missing something...keystroke maneuvering between applications under different virtual desktops

On Thu, 2006-11-30 at 00:42 -0600, Kevin Martin wrote:
> Is there a way to setup a keystroke combination that will allow me to
> "Alt-Tab" thru ALL gui applications running in ALL my
> desktops?  I can do this in KDE with simply "Alt-Tab" but can't seem to find a way to do this in GNOME.  I've
found that I like
> GNOME better than KDE except for this one issue (which I'm sure there's a resolution for and I'm just not
finding it).

Hmm, I thought it would at least do this if you set up your window list
to show windows on all desktops (right click the window list's 'gripper
bar', and select 'Preferences').  But apparently not.

Cheeri,
Calum.

--

-- 
CALUM BENSON, Usability Engineer       Sun Microsystems Ireland
mailto:calum.benson <at> sun.com            Java Desktop System Group
http://ie.sun.com                      +353 1 819 9771

Any opinions are personal and not necessarily those of Sun Microsystems
Todd Zullinger | 1 Dec 2006 16:28
Picon
Favicon
Gravatar

Re: I must be missing something...keystroke maneuvering between applications under different virtual desktops


Calum Benson wrote:
> On Thu, 2006-11-30 at 00:42 -0600, Kevin Martin wrote:
>> Is there a way to setup a keystroke combination that will allow me
>> to "Alt-Tab" thru ALL gui applications running in ALL my desktops?
>> I can do this in KDE with simply "Alt-Tab" but can't seem to find a
>> way to do this in GNOME.  I've found that I like GNOME better than
>> KDE except for this one issue (which I'm sure there's a resolution
>> for and I'm just not finding it).
> 
> Hmm, I thought it would at least do this if you set up your window
> list to show windows on all desktops (right click the window list's
> 'gripper bar', and select 'Preferences').  But apparently not.

I could have sworn there was a way to do this as well, but perusing
the keyboard shortcuts and such I couldn't find what I thought I
remembered was there.  Perhaps there's a gconf key to toggle this (I
looked but didn't see one)?

There might be a tool out there to add this functionality.  Things
like Devils Pie and Super Switcher extend Metacity in similar ways.

Failing that, there are more customizable window managers you can use
in Gnome.  In brief playing with Beryl, ISTR that it can do such a
thing.  It's been ages since I used Enlightenment WM together with
Gnome, but it may well be capable of this also.

--

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
======================================================================
It was probably drugs more than anything else that made me a
Libertarian.
    -- John Gilmore

William Case | 1 Dec 2006 17:15
Favicon

Re: Why doesn't this sudo script using zenity work??

Thanks Stefano;

I had forgotten the '|' pipe.  However, ....

On Fri, 2006-12-01 at 12:05 +0100, Stefano Sabatini wrote:
> On date Friday 2006-12-01 05:02:30 -0500, William Case wrote:
> > Hi;

> Because you need sudo to read the password passed by zenity on stdout.
> So you have to do:
> 
> zenity --entry \
>        --title="Browse files as root" \
>        --text="Enter your _password:" \
>        --entry-text "" \
>        --hide-text \
> | sudo -S nautilus --no-desktop --browser
> 
> then control the return code of sudo to check that the password
> entered was correct.
> 
Tried:
zenity --entry \
       --title="Browse files as root" \
       --text="Enter your _password:" \
       --entry-text "" \
       --hide-text | sudo -S nautilus --no-desktop --browser

Nothing shows up on my desktop.

Tried it again in gTerminal and got:
my file browser in root plus:

Password:   
[Entered through zenity ==> File Browser plus in stdout / stderror?]
Initializing nautilus-search-tool extension
Initializing nautilus-open-terminal extension

What do I do with these two lines?
--

-- 
Regards Bill
Andy Harrison | 1 Dec 2006 18:01
Picon
Gravatar

Re: Window properties - roles?

On 11/30/06, Mariano Suárez-Alvarez <msuarezalvarez <at> arnet.com.ar> wrote:
>
> Metacity certainly does not allow you do do that kind of things.
> The good news is, you can replace metacity with pretty much any other
> window manager which complies with the Window Manager Specification
> <http://www.freedesktop.org/wiki/Standards_2fwm_2dspec> (there is a list
> of window managers in that page)

Ok, I installed openbox just for kicks.  Never tried it.  However I
can't seem to figure out how to change the default window manager in
Gnome.  I tried searching for "window_manager" in gconf-editor, and
setting the current and default key values to a different window
manager and it doesn't work and shows that it is a deprecated option
anyway.  I can't seem to find information on it in the documentation
on the gnome website either.

FreeBSD 6.1-RELEASE-p10, xorg-6.9.0, gnome2-2.16.2.

--

-- 
Andy Harrison
Todd Zullinger | 1 Dec 2006 18:20
Picon
Favicon
Gravatar

Re: Window properties - roles?


Andy Harrison wrote:
> Ok, I installed openbox just for kicks.  Never tried it.  However I
> can't seem to figure out how to change the default window manager in
> Gnome.  I tried searching for "window_manager" in gconf-editor, and
> setting the current and default key values to a different window
> manager and it doesn't work and shows that it is a deprecated option
> anyway.  I can't seem to find information on it in the documentation
> on the gnome website either.

Just run "openbox --replace" and it will replace metacity.

(I've never used openbox either, so I don't know much more about it.)

--

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
======================================================================
Pick battles big enough to matter, yet small enough to win.
    --Jonathan Kozol


Gmane