PERFECT INTEGRATION OF FIREFOX IN DDE-KWIN

Hola comunidad. En esta ocasión vamos a integrar Firefox correctamente con nuestra distribución. Este tutorial es aplicable a Deepin 15.11 y V20.

1. Correctly remove the title bar.

Hace algún tiempo la comunidad Deepin en Español publicó un método para remover la barra de títulos de Firefox en Deepin 15.10 y Deepin 15.11. El método en sí consistía en el uso de reglas de ventana que removían el decorado de ventana para Firefox, usando la aplicación KDE system Settings. Aunque el método lograba su cometido, lo hacia al costo de pérdida de estética y utilidad, pues se perdían las sombras y la posibilidad de re-escalar la ventana de forma intuitiva (Sí querías cambiar el tamaño a la ventana tenias que presionar la combinación de teclas ALT+F8).

Hoy traemos la solución definitiva al problema sin efectos secundarios, para todos los amantes de Firefox:

1.1 Primero deberemos buscar el archivo .desktop de Firefox. Sí hemos descargado la aplicación de la tienda o Deepines lo encontraremos en “/ Usr / share / applications” Sí hemos descargado Firefox desde el sitio web, puede que se encuentre en “/home/<user>/.local/share/applications”, donde <usuario> es el nombre de tu cuenta de usuario. Sí la descargaste desde Deepines entonces el nombre del fichero es Firefox Latest.desktop y deberás tener esto en cuenta durante el transcurso de este tutorial.

This file seen from the file explorer has the appearance of the Firefox logo

1.2 Una vez localizado el archivo firefox.desktop lo abriremos con clic derecho>> abrir con >>editor de texto deepin. Para poder editarlo. (Sí el archivo se encuentra en “/ Usr / share / applications”) ocuparás permisos de administrador, de ser así primero abre la terminal y escribe:

$ sudo dde-file-manager

and navigate to / Usr / share / applications , right click >> open with >> deepin text editor.

1.3 Una vez abierto el archivo en el editor de texto, buscaremos la entrada EXEC = y pegaremos el siguiente código (Antes de lo que ya se encuentra escrito en dicha entrada y dejando un espacio antes de lo que ya esta escrito (La ruta.)

env XDG_CURRENT_DESKTOP = KDE XDG_SESSION_DESKTOP = KDE

This will be the result, make sure there is a space between the new code and the old one

1.4 Save the changes, we're almost done.

1.5 To finish, open Firefox again, click on the hamburger menu and click where it says "customize ..." in the lower left, remove the tick donde dice «barra de título» y ¡LISTO!

NOTE: Sí ya habías utilizado el método anterior desactiva las reglas de ventana para Firefox en KDE System Settings, pues ya no son necesarias.

2. Integrate the Close / Minimize / Maximize Buttons.

They have noticed that the icons in the Firefox TABS bar are not the ones used by the system, or rather, they are those of the system, but they look fuzzy stretched. The problem is that deepin is not the one in charge of rendering those buttons because DDE-KWIN is in charge of rendering the title bar and because when removing the title bar, the application is now in charge of handling this situation. Because there are many Linux distros Firefox cannot create a theme that works on all of them so they create something that looks more or less good on most.

How will we solve the problem? «Simple». (Quoted in quotation marks because it is not intuitive for most users of any operating system, not just Linux, but that's what I'm here for) It turns out that the graphical interface of Firefox can be configured almost entirely by the user, by using .CSS. There are two options, choose the one you like the most.

CSS is a language used on the web to stylize elements HTMLfrom websites. But in this case the developers of Firefox have decided to use it for the rendering of the graphical interface, in a very similar way to how GTK + works. But neglect I will provide all the files in one .zip file, so you just have to copy and paste without having to encode anything.

Well, well a lot of explanation so let's get to work.

2.1 First we must activate the option for Firefox to use our CSS file that contains the necessary settings. So in the browser search bar we write the following: «about: config»Without quotes and we give ENTER.

2.2 The following window will appear, in which we click the blue button to continue:

2.3 Now we look for the following entry: toolkit.legacyUserProfileCustomizations.stylesheets and we make sure it says true o True.

2.4 Now in the same way as before, in the search bar of Firefox we write about: profiles and we give ENTER and you will see more or less the following:

2.5 At this time you may see more than one Profile You should choose the one that says «Profile: default»(Account by default) then where it says Root directory (Root Directory) we click the button that says Open Directory (Open Folder).

2.6 In this directory we will paste the folder Chrome that I shared in the archive firefox_userchrome.zip or firefox_userchrome2.zip according to their preference of how they want Firefox to look, they decompress the file, copy and paste the folder. And yes, the folder must be called chrome, as is, if it does not work.

Now it's just a matter of closing all Firefox windows, reopening, and voila! to enjoy a more streamlined and perfectly integrated Firefox in DDE-KWIN.



5 4 votes
Rate the Article
 
Subscribe
Report of
11 Reviews
More popular
Newer Older
Opinion from the article
See all comments
Эли
Eli (@eli)
Admin
23 days ago

Excellent solution to this problem, thank you very much DzibanDziban

Эли
Eli (@eli)
Admin
Answering to Dziban
23 days ago

DzibanDziban I am one of those who have that problem hahaha, thank you very much for solving it.

Spycam
Spycam (@spycam)
Answering to Dziban
23 days ago

@dzziban…aqui não funcionou no Firefox baixado pelo Deepines.

Эли
Eli (@eli)
Admin
Answering to Spycam
23 days ago

SpycamSpycam Tenga en cuenta que si lo descargo desde Deepines entonces debe buscar el atajo a Firefox desde:

/ Usr / share / applications

Y el fichero entonces se llama:

Firefox Latest.desktop

Se ha modificado el tutorial para aclalar esto.
Greetings

SpycamSpycam Note que se o descarregou do Deepines, deve procurar o atalho para o Firefox a partir dele:

/ Usr / share / applications

E o arquivo é então chamado:

Firefox Latest.desktop

O tutorial foi modificado para esclarecer esta questão.
Saudações.

Spycam
Spycam (@spycam)
Answering to Eli
22 days ago

Funcionando perfeitamente, obrigado!

BorisJSMX
BorisJSMX (@borisjsmx)
23 days ago

Wow !!! It looks super like that, that's the first thing I realized I didn't like the way Firefox looked when it removed the bar!

Kevin
Kevin (@kevin)
22 days ago

Esto es perfecto, mucho mejor.

Juan Osorio
Juan Osorio (@juan877osorio)
20 days ago

me gusta

Armando-Lio
Armando-Lio (@armando-lio)
5 days ago

Gracias por la buena solución, me viene de anillo al dedo.

Última edición 5 días atrás por Armando-Lio
11
0
We would like to know what you think, Join the discussion.x
()
x