how to run exec file at startup using rc.local
I want to execute a qt exe program at startup. That is after automatic login instead of loading Desktop and seeing it, the program quickly pop up to the screen. For this, I think we should add the script to rcx.local rather than rc.local I guess though.. I tried adding a script to /etc/rc.local and giving it permission, but non works out.
I would thank if you explain the procedure in detail. |
"rcx.local"? From where you get this information - I never heard about this file. Anyway to autostart program you can login on this automatic login account and there use standard way to do this. For example in KDE you add program to execute after login in "System settings" / "System administration" and there is something like "Starting and stopping". And for autostarting programs on every account after someone login you can use "/etc/X11/Xsession.d" directory.
|
Quote:
.exe will not run |
Auto-starting a GUI program to open on the Desktop :
Add an entry in /home/<user-name>/.config/autostart/ ... The new file can be a "desktop entry" = program.desktop, or a link to the executable. Example : ~/.config/autostart/firefox.desktop . |
how to execute an exe at startup using rc.local
I want to execute a qt exe program at startup. That is after automatic login instead of loading Desktop and seeing it, the program quickly pop up to the screen. For this, I think we should add the script to rcx.local rather than rc.local I guess though.. I tried adding a script to /etc/rc.local and giving it permission, but non works out.
I would thank if you explain the procedure in detail. (I did try adding the rc.local n also creating a symbolic link to rcx.local, but unfortu. none works out) |
How many threads are you going to start for the same issue? Do you think the answers are going to be different this time? You have been replied by some very technically sound people in your last post. Why do you not continue with the same thread?
|
Quote:
|
Quote:
|
there is no such ~/.config/autostart folder
Quote:
adding it to /etc/xdg/autostart instead, and it failed. So, where is it? is it the same as using settings->startup application? if so, it's not what i want. adding an exe to settings-startup does not pop it up as soon as we login. I want the exe to open so that the user does not even see the desktop background. this is urgent, what should I do ? |
If no ".config/autostart/" folder : $ mkdir .config/autostart
... Then you can add applications for autostart. ( In Gnome, KDE the directory ".config/autostart/" is generated automatically, when you add an application in 'System - Settings - Autostart' or Startup .. https://kororaa.org/forums/viewtopic.php?f=2&t=305 ) . |
Sorry if I sounded harsh. It was just annoying to see the same person post the same thing.
|
Threads merged - settle people =)
|
Quote:
Code:
chmod +x /path_to_program/program_name |
Code:
[schneidz@hyper breaking-bad]$ cat ~/.bash_profile |
All times are GMT -5. The time now is 08:21 AM. |