Linux Lite 8.0 RC1 has been released - Click here


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

Lite Software Development Thread
#31

(04-25-2017, 12:46 PM)Jerry link Wrote:  Looking at the postinst file in Lite Software, do we need the following set?

Code:
chown root:root /usr/share/applications/* -R
chown root:root /usr/share/icons/* -R

chown'ing is quick and not intensive.

[/quote]
Code:
find /usr/share/applications/ -type f -exec chmod 644 {} \;
find /usr/share/icons/ -type d -exec chmod 755 {} \;
find /usr/share/icons/ -type f -exec chmod 644 {} \;
[/quote]

This is what really takes a lot of CPU time.

Quote:Given the number of applications and icons to set, would we be better off setting perms etc for only our files/dirs ? I mention this because when Lite Software receives an update, it is very slow to install.

The problem is that permissions are wrong right from a fresh install. The ISO images carry the wrong permissions out of the box or it happens right during the installation process.

We can somewhat improve it. For example, after installation the only folder and files with wrong permissions under /usr/share/icons is Faenza. So we could do:

Code:
chown root:root /usr/share/applications/* -R
chown root:root /usr/share/icons/* -R
find /usr/share/icons/Faenza* -type d -exec chmod 755 {} \;
find /usr/share/icons/Faenza* -type f -exec chmod 644 {} \;

... and that would be saving already a huge search for files and folders that did carry the correct permissions out of the box.

We can do the same with other files and folders... Just need a fresh install and go over them so we can optimize lite-software postinst accordingly.

https://unlockforus.com

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

[Image: AGxgqJ6.png]
Reply
#32

For consideration:

https://www.linuxliteos.com/forums/insta...n#msg31721

I think we should consider adding shotwell to Lite Software. There is no Photo Manager in our list of commonly used software.


https://unlockforus.com

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

[Image: AGxgqJ6.png]
Reply
#33

Yes, something to consider.

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

(05-03-2017, 04:02 PM)Jerry link Wrote:  Yes, something to consider.

Sent from my Mobile phone using Tapatalk

Committed to masterĀ  :)

https://unlockforus.com

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

[Image: AGxgqJ6.png]
Reply
#35

Consider means I'll think about it. It doesn't mean Yes, but you've already committed it so just leave it there.

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

Strange, I did say 'leave it there' ... now it's gone.

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

(04-25-2017, 12:46 PM)Jerry link Wrote:  Given the number of applications and icons to set, would we be better off setting perms etc for only our files/dirs ? I mention this because when Lite Software receives an update, it is very slow to install.

I have optimized the postinst file and the installation was rather snappy on my tests. Note that I switched from sh to bash in the script so that we can use arrays in a more efficient manner. Do not revert it to sh or the script will fail miserably :P

I have packaged and tested it... dpkg installed it in a blink of an eye. The only folder for which we are still doing 'find' is for the skel folder.

Cheers!



https://unlockforus.com

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

[Image: AGxgqJ6.png]
Reply
#38

Thanks Ralphy, will take a look soon.

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

Packaged and released.

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