LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   running gedit on fluxbox? (http://www.linuxquestions.org/questions/linux-newbie-8/running-gedit-on-fluxbox-123433/)

mymojo 12-07-2003 12:08 AM

running gedit on fluxbox?
 
is it possible to run gedit on fluxbox with just base system fluxbox?

Chu 12-07-2003 12:22 AM

Yeah should be, I mean I do.
Just open up a console and type gedit <path-of-filename> - It will open up gedit and your file (You already knew that?)
Have you started editting your Flux menu yet? It's really easy. In your /home/<user>/.fluxbox/ directory there's a file called menu - FInd where it says editors and add gedit :)

mymojo 12-07-2003 12:30 AM

w00t! it's the BEST editor. and yes, I have fiddled with the flux menu.. I'm MIA at the moment though, net connection probs

ps: I didn't know about that gedit thing... that's so cool!

would you have to do this too?

gedit filename.txt &

(note the &)

stuNNed 12-07-2003 01:14 AM

does anyone have any good fluxbox init scripts?

Scruff 12-07-2003 01:18 AM

Quote:

Originally posted by mymojo
w00t! it's the BEST editor. and yes, I have fiddled with the flux menu.. I'm MIA at the moment though, net connection probs

ps: I didn't know about that gedit thing... that's so cool!

would you have to do this too?

gedit filename.txt &

(note the &)

You don't have to use the &. The & is handy though, because it allows you to run that process (gedit or whatever) in the background of that terminal, leaving it free for other commands. But, if you close that term out, whatever apps you started with it will close as well. You can drop the extention (.txt) and just include the filename when starting it.

Scruff 12-07-2003 01:22 AM

Quote:

Originally posted by stuNNed
does anyone have any good fluxbox init scripts?
I'm not quite sure what you mean, but here is my .xinitrc which starts fluxbox for me:

scruff@dabasement:~$ cat .xinitrc
#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi

# Start the window manager:
exec /usr/X11R6/bin/fluxbox &

wmsetbg custom_shit/wallpaper/flux.jpg
gkrellm

The & after the 'start the window manager' allows the script to continue on to set my background, start gkrellm, or whatever else I want to start automatically.

mymojo 12-07-2003 07:08 AM

Quote:

Originally posted by Scruff
You don't have to use the &. The & is handy though, because it allows you to run that process (gedit or whatever) in the background of that terminal, leaving it free for other commands. But, if you close that term out, whatever apps you started with it will close as well. You can drop the extention (.txt) and just include the filename when starting it.
Ah, didn't think of that. What's a good way of starting apps then? Like, how do the desktop icons work? And the panel ones - and fluxbox menu? Is there a way to call them from the terminal, but not "run" the program through the terminal depending on them?

Scruff 12-07-2003 07:34 AM

I guess the best way to start apps is however you feel most comfortable. I have many of my favorite apps in my Flux menu, and some I start from a terminal. Sometimes I start an app in a term even when it's listed in my Fluxbox menu. Just depends on what I have going on. Personally I don't use icons. I always felt they cluttered up my desktop (even when I was using Windows) and preferred an organized menu instead. But to each his own.

Panel/icons/menus work pretty much the same way. If you right click one, you can usually see the command it runs to start whatever app their related to. Starting one this way keeps it independant of any virtual terminal you might be using. Any application started from a terminal will depend on that terminal, except for a "daemon". Daemon's are processes that become independant regardless of how they start, and continue to run in the background until stopped by whatever method: i.e. reboot, kill, etc.


All times are GMT -5. The time now is 08:17 AM.