21
Release Announcements / Re: Linux Lite 7.0 RC1 Released
« Last post by sqwuade on May 12, 2024, 04:07:37 AM »I've made significant progress on the "Lite Tweaks" issue. My first two theories (.rules vs .pkla polkit-1 and Zenity 3.44 not being compatible) are out the window!
Here's something that at least allows the tweaks to work, although it introduced a new issue, because, once you apply this change, even though all of the Lite Tweaks now work, you will get stuck in an infinite loop, where you can't exit the main window, and have to kill the zenity process manually.
So here it is;
Open the file
/usr/bin/lite-tweaks
and on line 786 change the operator "-ne" to "-eq"
I.e. change:
if [ "${PIPESTATUS[0]}" -ne "0" ]; then _clean_up; exit 0 ; fi # If Quit is clicked then exit
so it becomes:
if [ "${PIPESTATUS[0]}" -eq "0" ]; then _clean_up; exit 0 ; fi # If Quit is clicked then exit
Then try and run Lite Tweaks again and it should work for you... That is until you try to close it! That's where it gets stuck in the infinite loop.
A lot of great info on this page: https://linux.die.net/man/1/bash
That's where I found the info on the different operators.
arg1 OP arg2
OP is one of -eq, -ne, -lt, -le, -gt, or -ge. These arithmetic binary operators return true if arg1 is equal to, not equal to, less than, less than or equal to, greater than, or greater than or equal to arg2, respectively. Arg1 and arg2 may be positive or negative integers.
Info on the PIPESTATUS arrays:
https://linuxsimply.com/bash-scripting-tutorial/process-and-signal-handling/exit-codes/pipestatus/
Cheers! Sqwuade
Here's something that at least allows the tweaks to work, although it introduced a new issue, because, once you apply this change, even though all of the Lite Tweaks now work, you will get stuck in an infinite loop, where you can't exit the main window, and have to kill the zenity process manually.
So here it is;
Open the file
/usr/bin/lite-tweaks
and on line 786 change the operator "-ne" to "-eq"
I.e. change:
if [ "${PIPESTATUS[0]}" -ne "0" ]; then _clean_up; exit 0 ; fi # If Quit is clicked then exit
so it becomes:
if [ "${PIPESTATUS[0]}" -eq "0" ]; then _clean_up; exit 0 ; fi # If Quit is clicked then exit
Then try and run Lite Tweaks again and it should work for you... That is until you try to close it! That's where it gets stuck in the infinite loop.
A lot of great info on this page: https://linux.die.net/man/1/bash
That's where I found the info on the different operators.
arg1 OP arg2
OP is one of -eq, -ne, -lt, -le, -gt, or -ge. These arithmetic binary operators return true if arg1 is equal to, not equal to, less than, less than or equal to, greater than, or greater than or equal to arg2, respectively. Arg1 and arg2 may be positive or negative integers.
Info on the PIPESTATUS arrays:
https://linuxsimply.com/bash-scripting-tutorial/process-and-signal-handling/exit-codes/pipestatus/
Cheers! Sqwuade