LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-03-2004, 10:35 AM   #1
Juventino
LQ Newbie
 
Registered: Mar 2004
Location: Paris
Distribution: Redhat 9.0
Posts: 10

Rep: Reputation: 0
Unhappy kde starting application !!!


Hi;
I created an application that I wanted to use on kde start. so Iceated a link to this app, and I put it int /root/.kde/Autostart
It worked, but the user still can switch to other windows and use kde normally.
What I wanna do know is to make only my interface visible to the user. I don't want the kde interface to be shown before I quit or pass my interface.
Please, somebody help me, It's too important for me...
 
Old 03-03-2004, 03:51 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
You probably need to run your app before KDE, as a window manager. The simpliest way is to insert its name to .xinitrc in home directory and run startx. If you're using GUI loggin you need to attach it to menus (different in different *dms).
 
Old 03-04-2004, 04:31 AM   #3
Juventino
LQ Newbie
 
Registered: Mar 2004
Location: Paris
Distribution: Redhat 9.0
Posts: 10

Original Poster
Rep: Reputation: 0
I'm sorry, but I can't find the .xinitrc you mentioned... please, could you be a little bit clearer, I'm really a newbie!!
 
Old 03-04-2004, 08:00 AM   #4
Marius2
Member
 
Registered: Jan 2004
Location: Munich
Distribution: SuSE 9.2, 10.2, 10.3, knoppix
Posts: 276

Rep: Reputation: 31
Are you using Konqueror to browse your files? It doesn't display files which
begin with a '.' (they are supposed to be invisible to the normal user).
There is some option to disable this behaviour but I forgot where. But if
you open a console as root, 'cd' to your home directory and type 'ls', you
should be able to find .xinitrc.
 
Old 03-04-2004, 09:40 AM   #5
Juventino
LQ Newbie
 
Registered: Mar 2004
Location: Paris
Distribution: Redhat 9.0
Posts: 10

Original Poster
Rep: Reputation: 0
yes, I'm using konqueror. But I also tried "ls -all", and it doesn't displayed any ".xinitrc"...
I'm using redhat 9.0, maybe is there any problem with that... I don't think so...:-(
 
Old 03-04-2004, 10:06 AM   #6
meldar
Member
 
Registered: Feb 2004
Location: Denmark
Distribution: Gentoo
Posts: 136

Rep: Reputation: 15
startx searches for ~/.initrc and executes the contents after starting X. If not found it uses a default configuration specified otherwere. Just create the file .xinitrc, add your interface, and it should work!
 
Old 03-04-2004, 10:22 AM   #7
Juventino
LQ Newbie
 
Registered: Mar 2004
Location: Paris
Distribution: Redhat 9.0
Posts: 10

Original Poster
Rep: Reputation: 0
thnak you, but what should I put in the file .xinirc?
is there any partcular syntax or something?
 
Old 03-04-2004, 03:40 PM   #8
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Just type the program name inside (with path if needed).
 
Old 03-05-2004, 04:17 AM   #9
Juventino
LQ Newbie
 
Registered: Mar 2004
Location: Paris
Distribution: Redhat 9.0
Posts: 10

Original Poster
Rep: Reputation: 0
I'm logged as root... I created a file called .xinitrc , I put this line : /usr/bin/MGUI ; which is the path of my application...and then I put the file in /root... but it doesn't work...:-((
 
Old 03-05-2004, 04:44 AM   #10
Juventino
LQ Newbie
 
Registered: Mar 2004
Location: Paris
Distribution: Redhat 9.0
Posts: 10

Original Poster
Rep: Reputation: 0
I found a file called xinitrc (not starting with ".") in /etc/X11/xinit ... maybe you were talking about that file?
 
Old 03-05-2004, 03:46 PM   #11
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
Originally posted by Juventino
I'm logged as root... I created a file called .xinitrc , I put this line : /usr/bin/MGUI ; which is the path of my application...and then I put the file in /root... but it doesn't work...:-((
Do you then 'startx' as root? The global file in /etc may be also a good place, but remember that it's global, so all users will be affected.
 
Old 03-08-2004, 04:53 AM   #12
Juventino
LQ Newbie
 
Registered: Mar 2004
Location: Paris
Distribution: Redhat 9.0
Posts: 10

Original Poster
Rep: Reputation: 0
X is started automaticaly... I start Linux on KDE...so I would say yes, I'm starting X as root!
In fact, it's good that all thebusers will be affected (that's what I want !), but I still don't see which global file on /etc I have to use? the ".xinitrc" ?
 
Old 03-08-2004, 04:03 PM   #13
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
I X starts automatically at boot you need to tell us more. The thing is that if X is tsrted using 'startx', there's no gdm/kdm etc and .xinitrc is started. When you're using gdm/kdm, you have a choice of a window manager. Different programs are started depeninding on your choice. It would be possible to add a menu entry (and make it default) for your program, but if you don't remove other choices, users will be able to choose normal window manager. How would you like to handle this?
 
Old 03-09-2004, 04:42 AM   #14
Juventino
LQ Newbie
 
Registered: Mar 2004
Location: Paris
Distribution: Redhat 9.0
Posts: 10

Original Poster
Rep: Reputation: 0
in fact, I only use KDE, so it's the default window manager... So, I think it will be easier, isn't it,
 
Old 03-09-2004, 04:09 PM   #15
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
So first check the option with 'startx'. You will probably find the disadvantage of the solution with running program as a window manager - when you quite it, X will quite, too. But I think it'll be best for you to see the effect and then decide if that's what you want. To move to 'startx' mode (runlevel 3) edit /etc/inittab, find line 'id:5::initdefault' and change 5 to 3 (you can revert tha chenge by just inserting 5 again). Then reboot, your machine will boot to the text mode. Log in and run 'startx'. Your pogram should start with X.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
starting application on boot shukla_chanchal Linux - General 6 11-14-2005 08:22 AM
starting KDE application on specific workspace aguerra Linux - General 2 02-20-2005 06:58 PM
Starting an application on X by console tiagomadeira Programming 1 01-09-2005 07:20 AM
Starting an application on X by console tiagomadeira Linux - Software 4 01-09-2005 06:53 AM
Starting an application at boot ftwomey Linux - Newbie 3 04-25-2004 07:07 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:56 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
Open Source Consulting | Domain Registration