Auto-starting apps in Awesome3

Hi! I've been using Awesome3 for a while now. Until now I have been autostarting apps (conky, thunderbird etc) in my rc.lua file. But recently I found out that many people use their .xinitrc file to autostart things.
Just wondering, what do you guys do, and what are the pros and cons of each method?
I am starting to think that maybe the .xinitrc way is best because it does away with the need to check if a process is already running before starting it to avoid having multiple instances of the same app running. If I start all these processes in my xinitrc script which exits when Awesome does, they are automatically killed when it exits right?
Thanks for your advice!

jasonwryan wrote:
I don't use awesome, but I start most things in .xinitrc as it is wm-agnostic.
If I decide to run another wm, I don't want to have to recreate an autostart file...
That's a very good point, especially since I was considering trying out dwm. I can't see myself leaving awesome in the near future, but I will probably eventually try something new and this would be a good idea in that context.
Joker, thanks for your function. This is the once I currently use:
function start_once (cmd)
-- Check if an application is already running; if not, start the application.
-- Automatically forks to background so awesome doesn't hang on startup.
command = "if [[ ! $(pidof "..string.match(cmd, "%w+")..") ]]; then ("..cmd.." &); fi"
os.execute(command)
end

Similar Messages

  • Auto Start Apps. and hiding when logging in!

    Im getting so mad, why when I add a app. at log in to auto launch it always opens it to the screen. I have set it to hide the program at launch. I find it useless if that is the case. Any help would be appreciated.

    BUMP....I think ill go some were else to get help the official site *****... cannot even get an answer..

  • Mac OS X auto start app

    hello, hope that anyone out there will be able to help me out. i want to be able to start an application from when i turn on the power to any computer OS. i have read if i work with the registry on a pc that is one way of handling it. but is there another way, and in a Mac i would think is different so how would i go about it?
    example:
    power >> OS runs >> norton anti virus runs >> stays on
    hopefully you can help, thank you.

    WIth Mac OS X you first make your application a standalone runnable application. Then usingh the install procedure you put a link of the application into the start-up folder. It is pretty straight forward.
    If you wantto automate it you better look for the procedures at an apple developers forum. You can become a memeber of the apple developpers forum, go to apple.com > (tab>) OS X > (mnubar>) developers. go from there. There are examples on that site.
    That is what I know, never 'did it' though. Succes.

  • HT4539 Is there any way to auto-start the Apple mail app?

    Our company offers a 7/24 service where a user can leave a voice mail in our system and our mail server will send an urgent mail message to the iPhone of the employee on duty so it can be handled in a timely manner. The problem we are having is that if someone turns off their phone and starts it again (or if the user opens the running apps window and shuts down the mail app), the users are not getting those urgent emails.
    While I understand having an auto-starting app would be undesirable, since every developer might start activating that feature, does Apple iOS6 have any way to tell the mail app to restart on iPhone boot? We have a few people using other smartphones with a competing O/S that sounds similar to "asteroid" ;-) and the mail appears to be always operational, even if you shut down the app.

    And be sure to set up Notifications for mail so the phone will beep, buzz, flash, whatever when a message comes in.
    One issue though (discussed elsewhere): the phone will only Notify once. If you didn't hear or see it, there won't be any further warning (unlike, say, Blackberry's flashing LED). You're gonna have to grab the phone and at least bring up the lock screen to see if there are any notifications queued up.

  • Is there any app for phone auto start after swithced off??

    Is there any app for phone auto start after swithced off??

    Are you looking for an app which will startup the Z10 at a specified time?
    I don't know of one. I have a feeling once OS 10.2 is available you'll see apps such as this.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How can I turn off app auto start from last status? At OS X 10.8.3

    How can I turn off app auto start from last status? At OS X 10.8.3

    system preferences >general > close windows when quitting an application

  • Camera app auto start

    the camera app from my xperia z1 it's auto starting every time. I restart the smartphone to the original settings and the issue continue
    Solved!
    Go to Solution.

    Go to camera app-make sure you are on manual mode-tap on 3 dots (settings) -quick launch-off.
    All we have to decide is what to do with the time that is given to us - J.R.R. Tolkien

  • Nuron: Contacts app auto-starts -- how to prevent...

    The T-Mobile version of my Nuron auto-starts the Contact app to do a sync with its cloud backup service.  I'm trying to find how to turn this off, with no success.
    Any ideas?
    Thanks,
    jerome

    Is this looking like to be a hardware problem?
    Can I take it to any apple store & get fixed?

  • How to stop an app from auto starting when signing on?

    how to stop an app from auto starting when signing on?

    Several point :
    1st : do you select "auto relaunch" application when you close ML last time? don't do that next time
    2nd : in system preferences/Users and Groups look at applications that are selected for automatic opening. You can remove application. Tab called "Open At Login"
    3rd : have a look at /Library/LaunchDeamons/
    4th : buy Lingon
    Hope it can help

  • What is Auto start in j2me apps?

    Hey, i want to know i have application like opera mini signed application. When i give him application access under that there is Auto start in that i have selected allways allowed. But i don't know what is Auto Start in nokia s40. If anyone know's plz tell me in detail or short about that.
    My mobile is nokia 5300.

    I don't have a 5300 but if there is an option to change the short cut in settings for standby, you can choose any application that you wanted, in your case opera mini. If will not load automatically when switch on, but easy to access.
    Message Edited by android on 02-Nov-2008 08:34 AM
    Knowledge not shared is knowledge wasted!
    If you find it helpfull, it's not hard to click the STAR..

  • Error in Setting Auto Start for Oracle DB on Sun Solaris 10

    Hi Gurus,
    I am trying to set my DB to auto start when server reboots. Fllowing is my setting and the error. The issue is that the DB starts but LISTENER is not running...
    Please please help me...
    This is what I used for setting the auto start.
    Thanks,
    Jayant
    SETTING:
    =======
    #!/sbin/sh
    #Match ORACLE_HOME with whatever is in ~oracle/.profile!!!
    ORACLE_HOME=<whatever is Orcale home is>
    case $1 in
    start)
    su - oracle -c $ORACLE_HOME/bin/dbstart
    su - oracle -c "$ORACLE_HOME/bin/lsnrctl start"
    exit 0
    stop)
    su - oracle -c "$ORACLE_HOME/bin/lsnrctl stop"
    su - oracle -c $ORACLE_HOME/bin/dbshut
    esac
    You're not done yet! You now have to dl
    ln -s ../init.d/oracle /etc/rc3.d/S95oracle
    ln -s ../init.d/oracle /etc/rc0.d/K15oracle
    chmod 0755 /etc/init.d/oracle
    ERROR:
    ======
    LSNRCTL for Solaris: Version 10.2.0.1.0 - Production on 02-DEC-2006 10:09:24
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Message 1070 not found; No message file for product=network, facility=TNSTNS-12545: Message 12545 not found; No message file for product=network, facility=TNS
    TNS-12560: Message 12560 not found; No message file for product=network, facility=TNS
    TNS-00515: Message 515 not found; No message file for product=network, facility=TNS
    Solaris Error: 2: No such file or directory
    root@zngds1gk #

    Bingo.... I got it.
    Thanks for your hint about the ./.profile. I was setting env variables in .cshrc file and my default shell for "oracle" user was sh.
    Then I changed the default shell for oracle user to csh and viola..... it works.
    root@zngds1gk # su - oracle
    $ id
    uid=100(oracle) gid=101(dba)
    $ setenv
    HOME=/space/oracle
    PATH=/space/oracle/app/oracle/product/10.2.0/Db_2/bin:/usr/bin:
    LOGNAME=oracle
    HZ=100
    TERM=xterm
    SHELL=/bin/sh
    $ exit
    root@zngds1gk # usermod -u 100 -s /bin/csh oracle
    root@zngds1gk # su - oracle
    zngds1gk%
    zngds1gk% setenv
    HOME=/space/oracle
    PATH=/space/oracle/app/oracle/product/10.2.0/Db_2/bin:/usr/bin:
    LOGNAME=oracle
    HZ=100
    TERM=xterm
    SHELL=/bin/csh
    zngds1gk% cat .cshrc
    umask 022
    setenv ORACLE_BASE /space/oracle/app/oracle
    setenv ORACLE_SID adm
    setenv DISPLAY 47.102.212.108:0.0
    setenv ORACLE_HOME /space/oracle/app/oracle/product/10.2.0/Db_2
    setenv PATH /space/oracle/app/oracle/product/10.2.0/Db_2/bin:$PATH
    And now it works...
    Thanks.
    ~Jayant

  • Problem with auto start-stop script

    Hi to All,
    Logged as root. I have create in /etc/rc.d/init.d this file and saved as dbora (Oracle Linux 5.4):
    +#!/bin/sh+
    +# chkconfig: 345 99 10+
    +# description: Oracle auto start-stop script.+
    +#+
    +# Set ORA_HOME to be equivalent to the $ORACLE_HOME+
    +# from which you wish to execute dbstart and dbshut;+
    +#+
    +# Set ORA_OWNER to the user id of the owner of the+
    +# Oracle database in ORA_HOME.+
    ORA_HOME=/u01/app/oracle/product/10.2.0/db_1
    ORA_OWNER=oracle
    +if [ ! -f $ORA_HOME/bin/dbstart ]+
    then
    echo "Oracle startup: cannot start"
    exit
    fi
    case "$1" in
    +'start')+
    +# Start the Oracle databases:+
    +# The following command assumes that the oracle login+
    +# will not prompt the user for any values+
    su - $ORA_OWNER -c "$ORA_HOME/bin/dbstart $ORA_HOME"
    touch /var/lock/subsys/dbora
    +;;+
    +'stop')+
    +# Stop the Oracle databases:+
    +# The following command assumes that the oracle login+
    +# will not prompt the user for any values+
    su - $ORA_OWNER -c "$ORA_HOME/bin/dbshut $ORA_HOME"
    rm -f /var/lock/subsys/dbora
    +;;+
    esac
    After creation I have execute:
    *#chmod 750 /etc/rc.d/init.d/dbora*
    *#chkconfig --add /etc/rc.d/init.d/dbora*
    The last command return this message:
    +"service dbora does not support chkconfig"+.
    Can You help me? Have You an idea ?
    Thank You and best regards
    Gaetano

    sb92075 wrote:
    Oracle RDBMS needs to be started by process running at OS level as owner of Oracle software; typically OS user "oracle" & not as ROOT!Ok,
    But I have founded this script at [http://www.oracle-base.com/articles/linux/AutomatingDatabaseStartupAndShutdownOnLinux.php].
    The article report:
    Article
    When using RAC or ASM under Oracle 10g Release 2 or above, the Oracle Clusterware automatically starts and stops the Oracle database instances, so the following procedures are not necessary. For all other cases, you can use the methods described below.I must suppose, that the author has written an incorrect article?
    Best Regards
    Gaetano

  • Java Signing issues when loading web start app

    Hey, not sure if this is the correct place for this - but couldn't think where else to put it...
    I'm a bit stuck at the moment and i wondered if anyone could shed some light on my problem, and where I might go from here.
    We've developed a EJB3 application that has a web start UI for users to start... The application is developed in Eclipse and compiled and deployed with ant build scripts... When we deploy the application from within Eclipse everything runs smoothly and users are able to start the web start app without any problems... However I've recently tried setting up a Continuous Integration server (Hudson) for us to test new deploys on and for this our build scripts need to be run outside of Eclipse...
    This appears to run without a problem, however each time the system is deployed from here the web start application fails to start because web start cannot verify the signing in the client jar
    Could not verify signing in resource: http://10.39.216.5:8080/mist2/lib/mist2-client.jarAs far as I can tell from the output of the build everything goes according to plan and there is little difference between the output if the build had been started in eclipse... The only big difference is that when building in Eclipse the build only packs up the compiled code, because Eclipse auto build the application, whereas in Hudson the code is clean built using the ant scripts (which are created by Eclipse)... and if I turn autobuild off eclipse and build the project from scratch using only the build scripts then the same problem arises...
    I'm not really an expert on jar signing so I can't really guess at what might cause the verification to fail... any hints would be much appreciated. It feels like there is something that the Eclipse compiler does that is missing from the scripts but I can't think what this might be as the scripts are created in Eclipse
    Thanks
    Alex

    Alex,
    I believe your problem might be similar to one I had. According to one forum response (of course I can't find it now), if you have third-party JARs in your application (which in your case would be any eclipse jars), they might already be signed by their originators (as are eclipse jars), which may cause some really strange errors.
    The solution for me was to package my third-party (that is, eclipse) jars into their own feature, separate from my application's feature. So, my main jnlp file has an extension to my application's feature jnlp, and that feature's jnlp file has an extension to yet another jnlp file containing the list of third-party (eclipse) jars. Of course, your jar list will probably be different than mine.
    Here's all three files. Hope this helps!!
    Calvin.jnlp (the main jnlp file):
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp
    spec="1.0+"
    codebase="http://bet/ERS"
    href="calvin.jnlp">
    <information>
    <title>ERS</title>
    <vendor>NIAT</vendor>
    <homepage href="http://niat.net"/>
    <description>Electronic Record System</description>
    <icon href="icon.jpg"/>
    <icon kind="splash" href="splash.jpg"/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.6+" max-heap-size="256m"/>
    <jar href="org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar" main="true"/>
    <extension
    name="Calvin Feature"
    href="features/net.niat.calvin.feature.jnlp"/>
    <property
    name="osgi.instance.area"
    value="@user.home/Application Data/calvin"/>
    <property
    name="osgi.configuration.area"
    value="@user.home/Application Data/calvin"/>
    <property
    name="eclipse.product"
    value="net.niat.calvin.product"/>
    </resources>
    <application-desc main-class="org.eclipse.equinox.launcher.WebStartMain">
    <argument>-nosplash</argument>
    </application-desc>
    </jnlp>
    net.niat.calvin.feature.jnlp (the extension's jnlp):
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="http://bet/ERS">
    <information>
    <title>ERS</title>
    <vendor>NIAT</vendor>
    </information>
    <resources>
    <jar href="../plugins/net.niat.calvin_@[email protected]"/>
    <extension name="RCP" href="org.eclipse.rcp_3.4.1.jnlp"/>
    </resources>
    <component-desc></component-desc>
    </jnlp>
    org.eclipse.rcp_3.4.1.jnlp (the repackaged eclipse files jar feature):
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="$$codebase">
    <information>
    <title>Eclipse</title>
    <vendor>eclipse.org</vendor>
    </information>
    <resources>
    <jar href="../plugins/org.eclipse.core.commands_3.4.0.I20080509-2000.jar"/>
    <jar href="../plugins/net.niat.calvin_2.6.2.11.jar"/>
    <jar href="../plugins/org.eclipse.core.commands_3.4.0.I20080509-2000.jar"/>
    <jar href="../plugins/org.eclipse.core.contenttype_3.3.0.v20080604-1400.jar"/>
    <jar href="../plugins/org.eclipse.core.databinding_1.1.1.M20080827-0800b.jar"/>
    <jar href="../plugins/org.eclipse.core.expressions_3.4.0.v20080603-2000.jar"/>
    <jar href="../plugins/org.eclipse.core.jobs_3.4.0.v20080512.jar"/>
    <jar href="../plugins/org.eclipse.core.runtime.compatibility_3.2.0.v20071008.jar"/>
    <jar href="../plugins/org.eclipse.core.runtime_3.4.0.v20080512.jar"/>
    <jar href="../plugins/org.eclipse.equinox.app_1.1.0.v20080421-2006.jar"/>
    <jar href="../plugins/org.eclipse.equinox.common_3.4.0.v20080421-2006.jar"/>
    <jar href="../plugins/org.eclipse.equinox.preferences_3.2.201.R34x_v20080709.jar"/>
    <jar href="../plugins/org.eclipse.equinox.registry_3.4.0.v20080516-0950.jar"/>
    <jar href="../plugins/org.eclipse.help_3.3.101.v20080702_34x.jar"/>
    <jar href="../plugins/org.eclipse.jface.databinding_1.2.1.M20080827-0800a.jar"/>
    <jar href="../plugins/org.eclipse.jface_3.4.1.M20080827-2000.jar"/>
    <jar href="../plugins/org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar"/>
    <jar href="../plugins/org.eclipse.swt.win32.win32.x86.source_3.4.1.v3449c.jar"/>
    <jar href="../plugins/org.eclipse.swt_3.4.1.v3449c.jar"/>
    <jar href="../plugins/org.eclipse.ui.forms_3.3.101.v20080708_34x.jar"/>
    <jar href="../plugins/org.eclipse.ui.workbench_3.4.1.M20080827-0800a.jar"/>
    <jar href="../plugins/org.eclipse.ui_3.4.1.M20080910-0800.jar"/>
    <jar href="../plugins/runtime_registry_compatibility.jar"/>
    </resources>
    <component-desc></component-desc>
    </jnlp>

  • Auto Start/Stop Oracle Database Lintener DBConslone on Linux

    Dear all
    I have install oracle 10.2.0 on redhat 4.7 every time i have to start manualy.
    it try with following scrip / process but database not starting automatically.
    Please any one can provide steps for auto start and stop oracel services on RedHat 4.7
    Once the instance is created, edit the "/etc/oratab" file setting the restart flag for each instance to 'Y'.
    TSH1:/u01/app/oracle/product/10.2.0:Y
    Next, create a file called "/etc/init.d/dbora" as the root user, containing the following.
    #!/bin/bash
    #chkconfig: 345 95 10
    #description: init script to start/stop oracle database 10g, TNS listener, EMS and isqlplus
    case $1 in
         start)
         su - oracle -c 'lsnrctl start'
         su - oracle -c 'dbstart'
    su - ora10g -c 'isqlplusctl start'
         su - oracle -c 'emctl start dbconsole'
         stop)
    su - oracle -c 'emctl stop dbconsole'
         su - oracle -c 'isqlplusctl stop'
    su - oracle -c 'dbshut'
    su - oracle -c 'lsnrctl stop'
         restart)
    su - oracle -c 'emctl stop dbconsole'
         su - oracle -c 'isqlplusctl stop'
    su - oracle -c 'dbshut'
    su - oracle -c 'lsnrctl stop'
         su - oracle -c 'lsnrctl start'
         su - oracle -c 'dbstart'
    su - ora10g -c 'isqlplusctl start'
         su - oracle -c 'emctl start dbconsole'
    esac
    create service on linux
    Actions >> System Settings >> Server Settings >> Services Then
    Actions >> Add Service Then
    Service Name = dbora Then Press Ok
    chmod a+x /etc/init.d/dbora
    Check is it running this service properly
    service dbora stop
    service dbora start
    showing error
    :bad interperter : no such file or directory
    Please forward me process/steps for auto start/stop oracel services

    :bad interperter : no such file or directorymeans that it could not find the interpreter which should be used to interpret the script.
    most probably this is caused by the shebang (#!/bin/bash)
    the default location of bash on RHEL (OEL/CentOS) is /bin/bash, which means that the shebang looks correct.
    can you make the shebang:
    #!/bin/bash -xso shelltracing is put on and execute script again?
    this will make clear if it is the shebang in your script, or in another script.

  • Auto start for all services under solaris 10 ?

    Hi,
    Can I set the oracle auto start ? include listener, sqlplus...etc.
    Thanks.

    Hi,
    Yes I am using oracle as id.
    here is the output:
    solaris10% pwd
    /export/home/oracle/u01/app/oracle/oracle/product/10.2.0/db_3/bin
    solaris10% sh -x ./dbstart
    + :
    LOGMSG=logger -puser.alert -s
    + trap exit 1 2 3
    SAVE_LLP=/export/home/oracle/u01/app/oracle/oracle/product/10.2.0/db_3/lib:/export/home/oracle/u01/app/oracle/oracle/product/10.2.0/db_3/network/lib
    ORACLE_HOME_LISTNER=
    + [ ! ]
    ./dbstart: test: argument expected
    solaris10%
    By the way, here is my environment variables setting:
    solaris10% env
    HOME=/export/home/oracle
    PATH=/export/home/oracle/u01/app/oracle/oracle/product/10.2.0/db_3/bin:/usr/bin:LOGNAME=oracle
    HZ=
    TERM=xterm
    SHELL=/bin/csh
    MAIL=/var/mail/oracle
    LANG=C
    LC_CTYPE=C
    LC_ALL=C
    TZ=Hongkong
    PWD=/export/home/oracle/u01/app/oracle/oracle/product/10.2.0/db_3/bin
    USER=oracle
    DISPLAY=solaris10:0.0
    ORACLE_BASE=/export/home/oracle/u01/app/oracle
    ORACLE_SID=orclnew
    TMP=/export/home/oracle/tmp
    TMPDIR=/export/home/oracle/tmp
    ORACLE_HOME=/export/home/oracle/u01/app/oracle/oracle/product/10.2.0/db_3
    LD_LIBRARY_PATH=/export/home/oracle/u01/app/oracle/oracle/product/10.2.0/db_3/lib:/export/home/oracle/u01/app/oracle/oracle/product/10.2.0/db_3/network/lib
    ORATAB=/var/opt/oracle/oratab
    solaris10%
    Thanks.

Maybe you are looking for