LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 09-09-2008, 06:08 AM   #1
G4tsu
LQ Newbie
 
Registered: Jul 2008
Posts: 19

Rep: Reputation: 0
Question Single graphical application and xinit


Hi all, I am not an expert linux user and I have problems in obtaining a kiosk style Fedora9 desktop.
I want just to run a single graphical application, such as for example firefox, without loading any gui (no KDE, no Gnome, etc), that is my system is currently set in runlevel 3.

I tried xinit /usr/bin/firefox, and it does work, but firefox does not cover my whole screen, and when it pops up windows they have no borders.

What can I do to make things go better? Mb is there any xinit option or config file to edit?

Thank you all very much.
 
Old 09-09-2008, 06:19 AM   #2
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
firefox have -width and -height options. See "firefox --help"

Also, take a look at this:
http://www.ehartwell.com/TechNotes/K...SLAXBootCD.htm
http://forums.devshed.com/linux-help...ot-315378.html
http://www.dnalounge.com/backstage/src/kiosk/

Last edited by ErV; 09-09-2008 at 06:23 AM.
 
Old 09-09-2008, 09:21 AM   #3
G4tsu
LQ Newbie
 
Registered: Jul 2008
Posts: 19

Original Poster
Rep: Reputation: 0
Thx for your help... But I haven't found a solution yet..

I tried -width and -height options but firefox seems just to ignore them.
I tried even on a full loaded gnome desktop's konsole and with many integer values but firefox window's dimensions were always the same.

In the gnome konsole I used something like
/usr/bin/firefox -width 100
while on runlever3 system I used
xinit /usr/bin/firefox -width 100

The links you gave me were very interesting but they did't help me enough cause none of them referred to Fedora and above all none of them run firefox just using xinit.
 
Old 09-10-2008, 03:24 AM   #4
G4tsu
LQ Newbie
 
Registered: Jul 2008
Posts: 19

Original Poster
Rep: Reputation: 0
No other ideas? Nobody ever used xinit to launch applications?
 
Old 09-10-2008, 04:22 AM   #5
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
You can't have borders if you don't have a window manager.
You should probably use a fullscreen-only window-manager, such as Matchbox (user-friendly) or Ion (less so).

Yves.
 
Old 09-11-2008, 05:22 AM   #6
G4tsu
LQ Newbie
 
Registered: Jul 2008
Posts: 19

Original Poster
Rep: Reputation: 0
Thumbs up

I compiled and installed matchbox on my system, in standalone mode.
I have to say now firefox run fine!

Thank you!

The only problem is I still dont know how to lauch it! =D
I explain better.

I tried to create a .Xclient file in my home where i put the command "exec /usr/local/bin/matchbox-window-manager" but gdm still run gnome.

So I set system to runlevel 3, and I was able to launch firefox in these ways:
1) "xinit /usr/local/bin/matchbox-window-manager" on tty1
"/usr/bin/firefox" on tt2
2) "xinit /usr/bin/firefox" on tty1
"matchbox-window-manager" on tty
3) "xinit" on tty1
"/usr/bin/firefox &" on the shell run within xinit contest
"matchbox-window-manager" on that same shell or on any tty

So now how can i run it in runlevel 5?

Or how to init X-server and matchbox on runlevel3 so that any X-client application could be invoked by command line?

Thanks.
 
Old 09-11-2008, 09:19 AM   #7
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
For GDM, you need a file in /etc/X11/wmsession.d/ (unless that's a Mandriva-specific path…) that refers to a script you'll create like this:
Code:
/usr/local/bin/matchbox-window-manager &
mbPid=$!
/usr/bin/firefox
kill $mbPid
For the format of the file itself, in /etc/X11/wmsession.d/, adapt one of those existing.

Yves.
 
Old 09-11-2008, 09:40 AM   #8
G4tsu
LQ Newbie
 
Registered: Jul 2008
Posts: 19

Original Poster
Rep: Reputation: 0
Thumbs up

Ok solved, it works fine now.

But yes, /etc/X11/wmsession.d/ is a Mandriva specific path.

On Fedora I had to edit /etc/X11/xinit/Xsession file.

Thanks for all.
 
  


Reply

Tags
firefox, options, xinit


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Single GUI-Application DSL binooetomo DamnSmallLinux 6 02-12-2009 11:44 AM
Single Logon through GDM or other graphical tool requiemnoise Linux - Server 2 05-21-2008 02:21 AM
Firewall a single application... Akonbobot Linux - Security 7 03-03-2008 01:31 PM
X restarts when i start a graphical application Kanesoban Ubuntu 3 04-22-2007 05:19 PM
Printing is not possible for a single application using Samba and Cups SKH Linux - Software 0 01-29-2004 09:09 AM


All times are GMT -5. The time now is 01:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration