vinceliuice / WhiteSur-gtk-theme

MacOS Big Sur like theme for Gnome desktops
MIT License
5.75k stars 599 forks source link

Installing Whitesur GTK in Onlyoffice #1105

Open juanchopi37 opened 1 month ago

juanchopi37 commented 1 month ago

I had had problems getting whitesur to be applied in the OnlyOffice suite and I wanted to share the solution for people who have not been able to solve it. The first solution can be found in this link: https://helpcenter.onlyoffice.com/installation/desktop-flags.aspx

However, in my case the file was not found, so I had to create a script and a .desktop file (this would create two accesses for OnlyOffice) to do this follow these steps in case you have not found the solution in the link:

  1. First, let's create a script that launches OnlyOffice with the desired flag:
nano ~/.local/bin/onlyoffice-custom.sh

In this file, add the following lines:

#!/bin/bash
flatpak run org.onlyoffice.desktopeditors --system-title-bar "$@"

Save and close the file.

Make the script executable:

chmod +x ~/.local/bin/onlyoffice-custom.sh

Now, let's create a custom .desktop file:

nano ~/.local/share/applications/onlyoffice-custom.desktop

Add the following content:

[Desktop Entry]
Version=1.0
Type=Application
Name=ONLYOFFICE Desktop Editors (Custom)
Exec=/home/USERNAME/.local/bin/onlyoffice-custom.sh %F
Icon=org.onlyoffice.desktopeditors
Categories=Office;

Replace USERNAME with your actual username.

Make the .desktop file executable:

chmod +x ~/.local/share/applications/onlyoffice-custom.desktop

Update the applications database:

update-desktop-database ~/.local/share/applications
vinceliuice commented 3 weeks ago

Onlyoffice is not gtk app, can not use gtk themes

juanchopi37 commented 3 weeks ago

That's what I thought, basically what I did was create another .desktop file that could use the Whitesur theme header, that's just it.

image

with gtk:

image

This is only to create a compatible header and is only a solution to only office, it is not for all apps or only for some