Caja's zoom settings
In Caja's default settings the next zoom increment after 200% is 400%, which is a bit too much for me.
I am trying to find a way to tweak the settings in order to set an intermediate step between those two, i.e. 300%. I think I have identified the relevant configuration file that needs to be tweaked for that purpose, but due to my limited skills I am not sure how to tweak it. Can someone help me? The path of that config file is: /usr/share/glib-2.0/schemas/org.mate.caja.gschema.xml In contains explicit mentions to zoom settings (search for 'zoom'). Thanks for the help --Grabby |
dconf or gconf, i guess, is the tool of choice to manipulate these "schemas".
it probably also needs to be the verison compatible with MATE. |
Looking at lines 44-52 in /usr/share/glib-2.0/schemas/org.mate.caja.gschema.xml, the zoom values are just enumerations:
Code:
<enum id="org.mate.caja.ZoomLevel"> |
Quote:
|
Quote:
Code:
/* Nominal icon sizes for each Caja zoom level. |
^ these icon sizes are also widely accepted standard sizes for freedesktop icon themes.
|
Quote:
Too bad those settings are hard-coded, because I really need to have an intermediate zoom setting between 200% and 400%. The gap is too much. I have a couple of related questions: 1) if I decide to modify the source and then recompile the whole thing, will it be enough to remove Caja and then download the program's master branch from Github and use make? I am not a professional programmer, so I was wondering if perhaps there is something else to do that I do not know. 2) how long approximately will compiling Caja take, minutes or hours? (my CPU is intel i7 8th gen) Thanks a lot again, this is a wonderful forum Grabby |
I'm certainly not an expert on this, Grabby, but rather than potentially muck up your system, I would suggest setting up a virtual machine or a dual boot so that you can use a test system for playing around with Caja. If you are going to play around with your main system, I recommend making a system snapshot/backup/image first.
First things first. I suggest creating an issue about the zoom settings here - https://github.com/mate-desktop/caja/issues. Sometimes it takes a while for someone to respond, but the developers tend to look at the issue reports so it's a good place for your issue to be noticed. Next, ask questions about the zoom settings on a MATE forum or subreddit - details here: https://mate-desktop.org/community/ Then, depending on the answers you receive, you can look at hacking Caja. If you do, I would suggest you download the latest released version rather than the latest code - see http://pub.mate-desktop.org/releases/1.21/ I don't think it would take you long at all to build Caja. Replacing your current version of an integral component of the desktop with a new one compiled at your own hand may prove interesting though. |
Thanks a lot, hydrurga, for your very comprehensive and helpful answer!! I will follow your suggestions.
|
Quote:
|
Quote:
the executable usually gets dropped in some subfolder. you can try running it from there. if you're lucky it will Just Work, and you are not endangering any system files. no idea how long the compile will take; getting all the dependencies right, dev versions of libraries on debian-based distros, etc., will probably take longer than the actual compilation. |
@ondoho: I followed your suggestion and after modifying the source I compiled it as non-root. Compilation went OK. The executable file was created in the ./src subdirectory, and it runs. Only, for some strange reason the version of Caja that runs is not the one I compiled (version 1.21.3, as displayed by the autogen.sh file) but the one previously on the system (version 1.20.3). I could tell by looking at the About dialog.
Of course I used the ./ before the filename of the executable, and yet the program loaded is the default one that was already present on the system. I even tried changing the name of the executable to avoid any possible name conflict and I ran it again, so there is no doubt that the program loaded is the one I compiled -- once again, the program runs fine, but it is not the version I compiled. Any idea how to make sure that the program loaded is the one in the current directory? |
It just came to my mind that since Caja is always running in the background (because it manages the desktop icons) there may be a problem with loading into memory another version of it, so I am redirected to the Caja that is the default on the system. Could this be the reason?
|
both could be responsible.
you can try Code:
while pidof caja; do killall caja; sleep 1; done; ./caja but even if you manage to kill the caja process for goosd, it's probably still calling upon system resources, sth like /lib/caja/version.gui maybe... the answer to that lies in the sources and possibly in the compilation options. |
Quote:
|
All times are GMT -5. The time now is 08:14 PM. |