Linux Lite 8.0 RC1 has been released - Click here


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

Lite Tweaks Development Thread
#21

(04-21-2017, 02:11 PM)Jerry link Wrote:  Not feelin' it, sorry :(

That's perfectly ok :)

https://unlockforus.com

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

[Image: AGxgqJ6.png]
Reply
#22

I see the latest push has removed the Category column. There's been no decision on this yet.

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

Oh, my bad. I though we had agreed on the column removal but not on the ( * ). I will revert the latest commit, sorry.


https://unlockforus.com

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

[Image: AGxgqJ6.png]
Reply
#24

See poll here too - https://www.linuxliteos.com/forums/sugge...mn-change/

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

Column removal commit has been reverted and adjusted. I'll voice my opinion on that thread instead.

https://unlockforus.com

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

[Image: AGxgqJ6.png]
Reply
#26

(04-20-2017, 07:06 AM)Jerry link Wrote:  Idea - I don't think 'Autoremove Packages' should show in the list if there are none to remove. If there are packages to remove, we should show the number of packages to be autoremoved. Thoughts?

Code:
apt-get --dry-run autoremove | grep -Po '^Remv \K[^ ]+' | awk '{print $0}' | wc -w

Here is my tests result -  In a machine with 4GB RAM, Quad Core CPU and SSD drive takes 3.1 seconds to open Lite Tweaks when running dry APT to find 9 packages. I assume that it will take even longer in less powerful hardware, which is to be expected. So, I don't think we should add this check directly into Lite Tweaks.

As a workaround, we could run it as a background process but I have to put thoughts into it because zenity window is not going to be automatically refreshed... meaning that it will need to show and hide at specific times and that has to be figured out.

In the meantime, I propose the following:

* Don't show Package Cache task if there are no files for removal
* Don't show Thumbnails Cache task if there are no files for removal
* Don't show Log Archives task if there are no files for removal


https://unlockforus.com

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

[Image: AGxgqJ6.png]
Reply
#27

Agreed. Proposals accepted.

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

(04-21-2017, 07:47 PM)ralphy link Wrote:  In the meantime, I propose the following:

* Don't show Package Cache task if there are no files for removal
* Don't show Thumbnails Cache task if there are no files for removal
* Don't show Log Archives task if there are no files for removal

Committed to master.

https://unlockforus.com

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

[Image: AGxgqJ6.png]
Reply
#29

Thanks Ralphy.

Sent from my Mobile phone using Tapatalk


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

[member=2]Jerry[/member] , what would it be a good place to store additional commands and files for Lite Tweaks? For example; I have done something about dry apt:

We execute dry apt as soon as Lite Tweaks is launched but we execute it in the background and as a separate process so that it does't interrupt Lite Tweaks execution:

Assumed location:
Code:
bash -c "/usr/share/litemodules/dryapt" &

Then dryapt contains the dry apt check that will be stored in a $USER location where it can be written to and read from:

Code:
#!/bin/bash
dryapt=$(apt-get -s autoremove | grep -Po '^Remv \K[^ ]+' | awk '{print $0}' | wc -w)
eval "${dryapt}" &>/dev/null &disown
echo "${dryapt}" > "$HOME/.local/share/.dryapt"

Finally, we can read the file $HOME/.local/share/.dryapt and if the content is 0 (zero) we do not show Autoremove Packages tweak else we show it. That's a way around to run this check in Lite Tweak without affecting its initial execution. Your opinion?




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: 1 Guest(s)