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
#81

liteupdatesnotify has been updated in GH. We now need to change the index name (repo name) to lite-updatesnotify as well but that's something I can't do from my end, unless we don't wanna change that name which really doesn't make much of a difference to me as long as everything else under is properly named.

https://unlockforus.com

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

[Image: AGxgqJ6.png]
Reply
#82

We can leave the repo names as they are.

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
#83

(12-16-2016, 12:47 PM)Jerry link Wrote:  We can leave the repo names as they are.
Cool!

To create md5sums of all files to be included in a deb package, browse to the folder root of the package and execute:

Code:
find . -type f ! -regex '.*.hg.*' ! -regex '.*?debian-binary.*' ! -regex '.*? DEBIAN.*' -printf '%P ' | xargs md5sum > DEBIAN/md5sums

https://unlockforus.com

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

[Image: AGxgqJ6.png]
Reply
#84

(12-16-2016, 01:05 PM)ralphy link Wrote:  To create md5sums of all files to be included in a deb package, browse to the folder root of the package and execute:

Code:
find . -type f ! -regex '.*.hg.*' ! -regex '.*?debian-binary.*' ! -regex '.*? DEBIAN.*' -printf '%P ' | xargs md5sum > DEBIAN/md5sums

Cheers, that command will certainly save time.

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
#85

(12-16-2016, 09:13 AM)Jerry link Wrote:  This command seems to ensure Steps 5 & 6 match:

Code:
apt-get -s dist-upgrade | awk '/[0-9]+ upgraded,/ {print $1 " package updates are available"}'

Propose the following for updatenotify file:

Code:
#!/bin/bash
xhost local:$USER > /dev/null 2>&1
export DISPLAY=:0
tmpfile=/tmp/lun
ionice -c2 -p$$ -n 7;nice -n 19 apt-get update >/dev/null 2>&1
UPD=$(apt-get -s dist-upgrade | awk '/[0-9]+ upgraded,/ {print $1 " package updates are available"}' && echo && echo Click here to remove this message); >> $tmpfile
if grep -q -x '0 packages can be updated.' /tmp/lun; then
    notify-send -i /usr/share/icons/Faenza/places/48/distributor-logo-ubuntu.png --expire-time=5000 '   Lite Updates Notify' "Your system is up-to-date"
else
    notify-send -i /usr/share/icons/Faenza/apps/48/system-software-installer.png --expire-time=10000 'Install Updates' "$UPD"
fi
xhost - >/dev/null 2>&1
rm -f $tmpfile
exit

[Image: IDnCHCK.png]

Back to this. Do you want to show this notification instead?

https://unlockforus.com

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

[Image: AGxgqJ6.png]
Reply
#86

Yes please, keeps it simple for our users and no confusion vs Synaptic.

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
#87

Package with the latest code available in GH:

https://unlockforus.com/downloads/linuxl...te_all.deb

Cheers!

Just make sure to delete any old /etc/sudoers.d/lun file you may have in place or just install and uninstall this package twice and it will remove it for you.

https://unlockforus.com

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

[Image: AGxgqJ6.png]
Reply
#88

Working well here in a VM, cheers 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
#89

Jerry,

The last commit broke the application, unfortunately. I'm about to commit a fix for Lite Updates Notify to use these icons you have included (which are visually more user-friendly) but before I do so, I would like to ask you if it is fine with you to place these images under /usr/share/pixmaps/ which is a common Ubuntu folder containing icons related to specific applications instead of creating a new folder and subfolder for just those 2 icons.

The reason why I ask this is because it is simpler to keep app icons together in one location to manage them. Also, ubuntu searches in that folder by default to pull GUI icons. I just don't want to be pushing commits moving things around without we agree upon a standard way to handle these.

Here is the updated preview (backend is now fixed too)

[Image: EjadCjG.png]

https://unlockforus.com

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

[Image: AGxgqJ6.png]
Reply
#90

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.

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


Forum Jump:


Users browsing this thread: 2 Guest(s)