Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
07-19-2012, 03:54 AM
|
#1
|
Member
Registered: Sep 2008
Posts: 78
Rep:
|
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.
|
|
|
07-19-2012, 04:22 AM
|
#2
|
Senior Member
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281
|
"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.
Last edited by eSelix; 07-19-2012 at 04:24 AM.
|
|
|
07-19-2012, 05:07 AM
|
#3
|
Member
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179
Rep:
|
Quote:
Originally Posted by eSelix
"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.
|
is it " qt exe " a .exe file ?
.exe will not run
|
|
|
07-19-2012, 05:23 AM
|
#4
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
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
.
Last edited by knudfl; 07-19-2012 at 05:41 AM.
|
|
|
07-21-2012, 02:59 AM
|
#5
|
Member
Registered: Sep 2008
Posts: 78
Original Poster
Rep:
|
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)
|
|
|
07-21-2012, 04:18 AM
|
#6
|
Member
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855
Rep: 
|
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?
|
|
|
07-21-2012, 05:44 AM
|
#7
|
Member
Registered: Sep 2008
Posts: 78
Original Poster
Rep:
|
Quote:
Originally Posted by honeybadger
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?
|
easy, easy. I didn't notice I already asked this question before. Thank for reminding though, I will do report it.
|
|
|
07-21-2012, 05:47 AM
|
#8
|
Member
Registered: Sep 2008
Posts: 78
Original Poster
Rep:
|
Quote:
Originally Posted by sharadchhetri
is it " qt exe " a .exe file ?
.exe will not run
|
It's a qt exe
|
|
|
07-21-2012, 05:58 AM
|
#9
|
Member
Registered: Sep 2008
Posts: 78
Original Poster
Rep:
|
there is no such ~/.config/autostart folder
Quote:
Originally Posted by knudfl
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
.
|
There is no such folder autostart in .config inside my user folder. I tried
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 ?
|
|
|
07-21-2012, 12:28 PM
|
#10
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
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 )
.
|
|
|
07-22-2012, 03:51 AM
|
#11
|
Member
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855
Rep: 
|
Sorry if I sounded harsh. It was just annoying to see the same person post the same thing.
|
|
|
07-22-2012, 04:45 PM
|
#12
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Threads merged - settle people =)
|
|
|
07-23-2012, 04:29 AM
|
#13
|
Senior Member
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281
|
Quote:
Originally Posted by saman_artorious
It's a qt exe
|
Please by more detailed. By exe you mean an ".exe" file extension (program compiled for Microsoft Windows operating system) or just this is short of "executable" (but file was compiled for Linux system)? For first you need to install "wine" package, it is designed to run Windows programs (but not everything can work). For second you need to add access right for execute this file - in file manager you should have that option under properties of file, in shell you do
Code:
chmod +x /path_to_program/program_name
.
|
|
|
07-23-2012, 11:34 AM
|
#14
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326
|
Code:
[schneidz@hyper breaking-bad]$ cat ~/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
#/home/schneidz/nfs-w/leaderboard.ksh &
echo \~ \"\" \$ \^ \&\& \( \) \{ \} \>\> \@ \: \| \_ >> /home/schneidz/.bash_history
alias grep='grep --color=auto'
nautilus &
|
|
|
All times are GMT -5. The time now is 06:53 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|