LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Run gui applications in X without window manager or DE? (https://www.linuxquestions.org/questions/slackware-14/run-gui-applications-in-x-without-window-manager-or-de-804021/)

damgar 04-24-2010 10:10 PM

Run gui applications in X without window manager or DE?
 
I've seen some things that say that it's possible to run gui programs with X, but no DE or windowmanager with commands such as :
Code:

X && xterm

### or

(X &) && firefox

I find this intriguing if not altogether practical, but so far when I do one of the commands above, from a console (runlevel 3) the screen blanks as if X is starting, but then it just fades to a darker black. Killing X or changing terminals is all I can do to get out.

Is what I'm trying to do actually possible, and if so how would I go about getting it to work?

damgar 04-24-2010 10:35 PM

Well so far I've been able to kind of get this going by creating a new file, in this case to launch firefox, in /etc/X11/xinit called xinitrc.firefox that is just xinit.fluxbox with the last line changed to
Code:

exec /usr/bin/firefox
I would like a solution that isn't so "hard coded" that would allow me to choose any program I want without having to create a file first.

Mol_Bolom 04-25-2010 01:16 AM

You could always edit an environment variable. Such as...

.xinitrc
Code:

exec /usr/bin/$YOUR_ENV_VARIABLE_HERE
And in your ~/.profile add something like
Code:

function xrun() {
$YOUR_ENV_VARIABLE_HERE=$1
}

Then all you'd have to type would be "xrun firefox", or whatever program you want.

<Edit> Also, you might have a look at the xinit man page.

Richard Cranium 04-25-2010 08:36 AM

Or use ratpoison. http://www.nongnu.org/ratpoison/

adamk75 04-25-2010 08:56 AM

Just run 'xinit /usr/bin/xterm' (or whatever program you want to run).

Adam


All times are GMT -5. The time now is 12:38 PM.