09-05-2015, 06:07 AM
Control Center Ideas
09-05-2015, 06:14 AM
Thanks Milos, but I'm still able to spawn multiple instances from the tray using the new code.
Download your free copy of Linux Lite today.
Jerry Bezencon
Linux Lite Creator
"Do not correct a fool, or he will hate you; correct a wise man and he will appreciate you."
![[Image: X5qGkCg.png]](https://imgur.com/X5qGkCg.png)
09-05-2015, 06:24 AM
We need to add this function to the beginning of the control center:
It will lock the file untill it is closed.
Will do that later. Have things to do today. :)
Code:
fh=0
def run_once():
global fh
fh=open(os.path.realpath(__file__),'r')
try:
fcntl.flock(fh,fcntl.LOCK_EX|fcntl.LOCK_NB)
except:
sys.exit (0)
run_once()Will do that later. Have things to do today. :)
09-05-2015, 06:44 AM
Cool :)
Download your free copy of Linux Lite today.
Jerry Bezencon
Linux Lite Creator
"Do not correct a fool, or he will hate you; correct a wise man and he will appreciate you."
![[Image: X5qGkCg.png]](https://imgur.com/X5qGkCg.png)
09-07-2015, 07:30 PM
Pushed to the master branch. Now only one instance of litecc will be opened.
How is the tray icon working?
How is the tray icon working?
09-08-2015, 02:37 AM
I thought we agreed this would stay off the main branch for now??
Download your free copy of Linux Lite today.
Jerry Bezencon
Linux Lite Creator
"Do not correct a fool, or he will hate you; correct a wise man and he will appreciate you."
![[Image: X5qGkCg.png]](https://imgur.com/X5qGkCg.png)
09-08-2015, 03:17 AM
09-08-2015, 02:28 PM
Ah I see, thanks Milos :)
It won't launch:
It won't launch:
Code:
jerry@z800:/usr/share/litecc$ lite-controlcenter
File "/usr/share/litecc/litecenter.py", line 341
main()
^
TabError: inconsistent use of tabs and spaces in indentation
jerry@z800:/usr/share/litecc$Download your free copy of Linux Lite today.
Jerry Bezencon
Linux Lite Creator
"Do not correct a fool, or he will hate you; correct a wise man and he will appreciate you."
![[Image: X5qGkCg.png]](https://imgur.com/X5qGkCg.png)
09-08-2015, 04:08 PM
Fixed :) Sorry bro. It was wrong indent. I've pressed tab instead of adding spaces in front of previous line. Indentation mismatch.
It's working now.
I should open a testing branch definitelly. ;D
It's working now.
I should open a testing branch definitelly. ;D
09-09-2015, 12:35 AM
Working nicely, I'll package a new ver today :) Thank you.
Download your free copy of Linux Lite today.
Jerry Bezencon
Linux Lite Creator
"Do not correct a fool, or he will hate you; correct a wise man and he will appreciate you."
![[Image: X5qGkCg.png]](https://imgur.com/X5qGkCg.png)
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)

