Linux Lite 8.0 RC1 has been released - Click here


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Lite Updates Notify - Development
#91

Since our apps are fairly basic looking, I like to use a mixture of bold, italic, and icons and colors where possible. Dresses them up a bit.

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]

[Image: 0op1GNe.png] [Image: LgJ2mtP.png] [Image: vLZcFUE.png] [Image: lrUHro3.jpg]
Reply
#92

(12-20-2016, 11:10 AM)Jerry link Wrote:  I'm aware of /usr/share/pixmaps. I've started avoiding the use of this because it ends up being full of random image files from various applications. I'm not totally against using it, I was just pursuing a practice of using /usr/share/liteapplicationgoeshere as a means to tidy things up, keep them consistent.

You certainly have a point there, Jerry. How about we designate a single folder for all LL icons then? For example, something like /usr/share/liteappsicons

The idea is not to have to chmod/chwon each additional folder that may be created if we use a separate folder for each application. Putting everything under one single folder prevents us from having to add additional chown/chmod to postinst files for example.

https://unlockforus.com

Sorry for seeming stupid and preferring Linux - I just don't know any better.

[Image: AGxgqJ6.png]
Reply
#93

I like that idea.

[Image: 272035.jpg]

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]

[Image: 0op1GNe.png] [Image: LgJ2mtP.png] [Image: vLZcFUE.png] [Image: lrUHro3.jpg]
Reply
#94

Agreed! lol

[Image: 272035.jpg]

https://unlockforus.com

Sorry for seeming stupid and preferring Linux - I just don't know any better.

[Image: AGxgqJ6.png]
Reply
#95

Changes pushed to master.

https://unlockforus.com

Sorry for seeming stupid and preferring Linux - I just don't know any better.

[Image: AGxgqJ6.png]
Reply
#96

Thanks Ralphy :)

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]

[Image: 0op1GNe.png] [Image: LgJ2mtP.png] [Image: vLZcFUE.png] [Image: lrUHro3.jpg]
Reply
#97

Code:
"$APPICON" "10" "Hourly" " Once every hour eg. 1pm, 2pm, 3pm etc" \
"$APPICON" "11" "Every 6 Hours" " First run at midnight, then every 6 hours" \
"$APPICON" "12" "Every 12 Hours" " First run at midnight, then every 12 hours" \
"$APPICON" "13" "Daily" "Every day at 7pm" \
"$APPICON" "14" "Every other day    " " Every other day at 7pm" \
"$APPICON" "15" "Weekly" " Once every week at 7pm on a Monday" \
"$APPICON" "16" "Every 2 Weeks" " Once every 2 weeks at 7pm on a Monday" \
"$APPICON" "17" "Every 3 Weeks" " Once every 3 weeks at 7pm on a Monday" \
"$APPICONDISABLE" "20" "Disable                   " " Disable Updates notification")

What is the use of 10, 11, 13 14 etc numbers for? The reason I'm asking is because I want to re-insert the '2mins' test line without breaking the app.

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]

[Image: 0op1GNe.png] [Image: LgJ2mtP.png] [Image: vLZcFUE.png] [Image: lrUHro3.jpg]
Reply
#98

That intergers column is used to catch the response of the user selection. So, if you are going to add the option back, just use an interger (number) anything you want except 0 or 1.

Since the option you want to add is just for testing, I recommend for you not to add it to the GUI and simply edit the cron which is rather quicker and allows you to test the current code without additional options. For example:

Install the app, execute it and select to notify you every one hour. After that, just edit your user cron in Terminal

Code:
crontab -e

Quote:0 * * * * ionice -c2 -p$$ -n 7;nice -n 19 /usr/local/sbin/updatesnotify-launcher >/dev/null 2>&1
## Lite Updates Notify - DO NOT MANUALLY DELETE OR EDIT THE ABOVE LINE ######


You will see that the cronjob was scheduled for every hour... Just modify to your needs, e.g 2 minutes:

Quote:*/2 * * * * ionice -c2 -p$$ -n 7;nice -n 19 /usr/local/sbin/updatesnotify-launcher >/dev/null 2>&1
## Lite Updates Notify - DO NOT MANUALLY DELETE OR EDIT THE ABOVE LINE ######

https://unlockforus.com

Sorry for seeming stupid and preferring Linux - I just don't know any better.

[Image: AGxgqJ6.png]
Reply
#99

(12-22-2016, 09:12 AM)ralphy link Wrote:  You will see that the cronjob was scheduled for every hour... Just modify to your needs, e.g 2 minutes:

*/2 * * * * ionice -c2 -p$$ -n 7;nice -n 19 /usr/local/sbin/updatesnotify-launcher >/dev/null 2>&1
## Lite Updates Notify - DO NOT MANUALLY DELETE OR EDIT THE ABOVE LINE ######

Yeh, I tried that with the latest build before posting here, and it didn't work. Will give it another go tomorrow.

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]

[Image: 0op1GNe.png] [Image: LgJ2mtP.png] [Image: vLZcFUE.png] [Image: lrUHro3.jpg]
Reply

(12-22-2016, 09:18 AM)Jerry link Wrote:  Yeh, I tried that with the latest build before posting here, and it didn't work. Will give it another go tomorrow.

Not sure what could have happened there. Maybe something else unrelated was the issue and it made you believe that it had to do with the change to the cron job.

I've done that throughout my entire testing (which I actually set every 1 minute) and it has worked without issues for me.

https://unlockforus.com

Sorry for seeming stupid and preferring Linux - I just don't know any better.

[Image: AGxgqJ6.png]
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)