Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Nov 2007 21:57:10 +0100
From:      Tino Engel <elrap@web.de>
To:        "Aryeh M. Friedman" <aryeh.friedman@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: looking for suggestions: multiple users on the same desktop
Message-ID:  <47507926.5010103@web.de>
In-Reply-To: <474FD863.2060004@gmail.com>
References:  <474FD863.2060004@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Aryeh M. Friedman schrieb:
> I almost always login into aryeh (xfce via xdm).   Both web and dev
> require the use of variuous X applications but I don't want to logout
> and login back in and/or have to invoke the app from the cmd line
> (i.e. xhost +; setenv DISPLAY :0; app cmd line)... I am looking for a
> way to make it so I can launch apps from a desktop panel and/or icon
> on the desktop and make it ask what user to run it under (or somehow
> or another make it aware that not everything is to be ruin as
> "aryeh")... ideas?
>
> - --
> Aryeh M. Friedman
>
>   
Not very sophisticated, but an idea.

Associate commands as follows assigned to an icons.

xterm -e userwrapper.sh <command>

An userwrapper.sh is like this:

#!/bin/sh

echo "Enter username for $1"
read USERNAME
ssh -l $USERNAME $1


Rg, Tino







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47507926.5010103>