Libreoffice is not using my gtk theme

LibreOffice was not using my gtk theme (on my devuan netinst, fluxbox, with xfce4-settings-manager, chtheme, and manually written .config/gtk-3.0/settings.ini).

Turns out you simply need to install an additional package:

sudo apt-get install libreoffice-gtk3

Devuan also has a libreoffice-gtk2 package, which I didn’t try.
I haven’t tried a Fedora minimal/net install with Fluxbox and LibreOffice, so I don’t know if the libreoffice-gtk3 rpm is necessary there, but it’s in the repos.

sudo dnf install libreoffice-gtk3

I was impressed by this behavior. Just install an extra .so file, and boom, LibreOffice integrates with your desktop theme. LibreOffice is some great stuff!

References

Ripped off from How to change themes [closed] – Ask LibreOffice

Advertisements

Roll back aborted dnf update, 2019 edition

I had to fix an aborted dnf update. My previous post on this topic

sudo dnf remove $( sudo dnf list installed --showduplicates$( sudo dnf list installed --showduplicates | sort | uniq -w35 -D | awk '/^[a-zA-Z]/{print $1}' | sort | uniq | grep -vE 'kernel|saned' ) | awk '$0 !~ /Packages/{split($1,b,".");if($2 > a[b[1]]){a[b[1]]=$2"."b[2]}} END {for (key in a) {print key"-"a[key]} }' ) Walkthrough of the commands sudo dnf list installed --showduplicates | sort | uniq -w35 -D | awk '/^[a-zA-Z]/{print$1}' | sort | uniq | grep -vE 'kernel|saned'

Show all installed packages, and then show only the duplicates (up to the first 35 characters; having to take a guess here), and remove any saned and kernel packages. I don’t know why I had to exclude saned: Perhaps I wanted both x86_64 and i386 packages for saned.

sudo dnf list installed --showduplicates $ABOVEVALUES | awk '$0 !~ /Packages/{split($1,b,".");if($2 > a[b[1]]){a[b[1]]=$2"."b[2]}} END {for (key in a) {print key"-"a[key]} }' So, list the output from the previous statement including duplicates, and then use awk to find the highest version number of each named package and store it to a buffer. Then display that whole buffer at the end. So this now shows only the exact name and version (NEVRA, partially) of what to remove. So this whole process is here to roll back the partially-updated changes. sudo dnf remove$ABOVEVALUES

And now remove those packages. This should reset, so that we can then perform a regular upgrade at some later point.

references

1. awk array in END https://unix.stackexchange.com/questions/183279/how-to-view-all-the-content-in-an-awk-array/183280#183280
2. Prior use of associative arrays in awk https://bgstack15.wordpress.com/2017/04/11/remove-only-certain-duplicate-lines-with-awk/
3. prior use of dnf –showduplicates but that didn’t work this time https://bgstack15.wordpress.com/2018/04/03/fedora-remove-duplicate-packages-from-partially-completed-dnf-update/
4. discussion on NEVRA https://slashterix.wordpress.com/2016/08/06/rpm-version-comparison/

Notes for Powershell credentials

Here are some dirty ways to store user credentials in powershell.

Get-Credential | Export-Clixml C:\path\to\output\file.xml

The same user, on the same machine, that generates that file can retrieve the contents with

Gedit then and now

This is a rant post, and not a how-to.

Gedit is a simple text editor for the GNOME stack. I remember reading somewhere about the old and new gedit interfaces. The GNOME team has this plan to reduce and hide functionality, and gedit shows some of the changes.
Gedit used to have a toolbar, and the regular titlebar and menus.

But Gedit after GNOME has changed their thinking has hidden its functions.

I don’t really use gedit, because my text editing is more console driven, or else I use scite.

Backtracking my activities for the references

Web search gedit then and now which led to
Slashdot comment #54946443 on article GNOME’s Text Editor gedit ‘No Longer Maintained’, Needs New Developers which quotes
Slashdot comment #48503821 on article Ask Slashdot: Non-Coders, Why Aren’t You Contributing To Open Source? which includes links to two images
Gedit_3.11.92.png [wikipedia.org]
Gedit2261.png [wikipedia.org]