ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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...
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).
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.
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...:-(
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!
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...:-((
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.
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" ?
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.