You are not logged in.

#1 2012-09-01 07:34:25

chickenPie4tea
Member
Registered: 2012-08-21
Posts: 309

awesomeWM and lua question

Hello,  At the moment I have this at the bottom of my lua.rc (awesome config file)
run_once("name of app")

i was wondering what is the best way in lua to
A) check if app is already running and it it is do nothing
B) if it is not running start it

Anyonw use Awesome/and or is good at  lua?


You can like linux without becoming a fanatic!

Offline

#2 2012-09-01 15:10:30

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: awesomeWM and lua question

Look at the wiki on the  Awesome homepage; you want the "Run or Raise" entry.

Offline

#3 2012-09-01 18:22:01

spark666
Member
Registered: 2011-05-23
Posts: 137

Re: awesomeWM and lua question

I think he is talking about startup programs tongue

Offline

#4 2012-09-02 05:41:41

chickenPie4tea
Member
Registered: 2012-08-21
Posts: 309

Re: awesomeWM and lua question

spark666 wrote:

I think he is talking about startup programs tongue

Yep, I mean starting up apps not going to a tab with an app on it etc
Anyway I found the info  I wanted on the Awesome page but in the end did it a simper way without using lua code.

Last edited by chickenPie4tea (2012-09-02 05:46:17)


You can like linux without becoming a fanatic!

Offline

Board footer

Powered by FluxBB