PINE64
Does anyone know where the scale to fit information is store? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: Debian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139)
+---- Thread: Does anyone know where the scale to fit information is store? (/showthread.php?tid=11283)



Does anyone know where the scale to fit information is store? - ragreenburg - 09-04-2020

What I mean is when I type in scale-to-fit firefox-ers on, where does that information get stored so that the phone knows to keep it that way?


RE: Does anyone know where the scale to fit information is store? - spaetz - 09-05-2020

(09-04-2020, 07:33 PM)ragreenburg Wrote: What I mean is when I type in scale-to-fit firefox-ers on, where does that information get stored so that the phone knows to keep it that way?

https://source.puri.sm/Librem5/phoc/-/blob/master/helpers/scale-to-fit#L26


RE: Does anyone know where the scale to fit information is store? - ragreenburg - 09-05-2020

(09-05-2020, 04:54 PM)spaetz Wrote:
(09-04-2020, 07:33 PM)ragreenburg Wrote: What I mean is when I type in scale-to-fit firefox-ers on, where does that information get stored so that the phone knows to keep it that way?

https://source.puri.sm/Librem5/phoc/-/blob/master/helpers/scale-to-fit#L26
Sorry, I should have been more clear. I mean store on the phone. I looked at their script and it has a path in it that I certainly can't find on Mobian of /sm/Puri/phoc/application/


RE: Does anyone know where the scale to fit information is store? - spaetz - 09-06-2020

(09-05-2020, 06:58 PM)ragreenburg Wrote:
(09-05-2020, 04:54 PM)spaetz Wrote:
(09-04-2020, 07:33 PM)ragreenburg Wrote: What I mean is when I type in scale-to-fit firefox-ers on, where does that information get stored so that the phone knows to keep it that way?

https://source.puri.sm/Librem5/phoc/-/blob/master/helpers/scale-to-fit#L26
Sorry, I should have been more clear. I mean store on the phone. I looked at their script and it has a path in it that I certainly can't find on Mobian of /sm/Puri/phoc/application/
Yes, it uses gsettings (the equivalent of the windows registry) and you can get and set these entries using the command I linked above. It *is* where scale-to-fit save the info as the list is part of the scale-to-fit source.


RE: Does anyone know where the scale to fit information is store? - ragreenburg - 09-06-2020

(09-06-2020, 08:26 AM)spaetz Wrote:
(09-05-2020, 06:58 PM)ragreenburg Wrote:
(09-05-2020, 04:54 PM)spaetz Wrote:
(09-04-2020, 07:33 PM)ragreenburg Wrote: What I mean is when I type in scale-to-fit firefox-ers on, where does that information get stored so that the phone knows to keep it that way?

https://source.puri.sm/Librem5/phoc/-/blob/master/helpers/scale-to-fit#L26
Sorry, I should have been more clear. I mean store on the phone. I looked at their script and it has a path in it that I certainly can't find on Mobian of /sm/Puri/phoc/application/
Yes, it uses gsettings (the equivalent of the windows registry) and you can get and set these entries using the command I linked above. It *is* where scale-to-fit save the info as the list is part of the scale-to-fit source.
I am still a bit confused on where I can find this information on my phone though. Because I made an app that scales everything but realized that without being able to check and see if they are already scaled it'd be impossible for it to know what is and isn't scaled.


RE: Does anyone know where the scale to fit information is store? - DarkManiels - 09-11-2020

(09-06-2020, 10:54 AM)ragreenburg Wrote:
(09-06-2020, 08:26 AM)spaetz Wrote:
(09-05-2020, 06:58 PM)ragreenburg Wrote:
(09-05-2020, 04:54 PM)spaetz Wrote:
(09-04-2020, 07:33 PM)ragreenburg Wrote: What I mean is when I type in scale-to-fit firefox-ers on, where does that information get stored so that the phone knows to keep it that way?

https://source.puri.sm/Librem5/phoc/-/blob/master/helpers/scale-to-fit#L26
Sorry, I should have been more clear. I mean store on the phone. I looked at their script and it has a path in it that I certainly can't find on Mobian of /sm/Puri/phoc/application/
Yes, it uses gsettings (the equivalent of the windows registry) and you can get and set these entries using the command I linked above. It *is* where scale-to-fit save the info as the list is part of the scale-to-fit source.
I am still a bit confused on where I can find this information on my phone though. Because I made an app that scales everything but realized that without being able to check and see if they are already scaled it'd be impossible for it to know what is and isn't scaled.
The best way I've found to check the scale-to-fit settings is to use the dconf Editor application. Open the app and navigate to sm/puri/phoc/application, then you'll see a list of applications, and you can check each individually to see if scale-to-fit is set to "true" or "false" (you can also change the setting this way, rather than using the command line).


RE: Does anyone know where the scale to fit information is store? - sundog - 09-11-2020

(09-06-2020, 10:54 AM)ragreenburg Wrote:
(09-06-2020, 08:26 AM)spaetz Wrote:
(09-05-2020, 06:58 PM)ragreenburg Wrote:
(09-05-2020, 04:54 PM)spaetz Wrote:
(09-04-2020, 07:33 PM)ragreenburg Wrote: What I mean is when I type in scale-to-fit firefox-ers on, where does that information get stored so that the phone knows to keep it that way?

https://source.puri.sm/Librem5/phoc/-/blob/master/helpers/scale-to-fit#L26
Sorry, I should have been more clear. I mean store on the phone. I looked at their script and it has a path in it that I certainly can't find on Mobian of /sm/Puri/phoc/application/
Yes, it uses gsettings (the equivalent of the windows registry) and you can get and set these entries using the command I linked above. It *is* where scale-to-fit save the info as the list is part of the scale-to-fit source.
I am still a bit confused on where I can find this information on my phone though. Because I made an app that scales everything but realized that without being able to check and see if they are already scaled it'd be impossible for it to know what is and isn't scaled.

You should be able to check the value using dconf, such as:

Code:
sundog@sundog-pinephone-lxde-emmc:~$ dconf read /sm/puri/phoc/application/firefox-esr/scale-to-fit
true

Also,
Code:
dconf dump /
should show you all the values stored in the database


RE: Does anyone know where the scale to fit information is store? - DarkManiels - 09-11-2020

[quote pid='77464' dateline='1599840207']
Also,
Code:
dconf dump /
should show you all the values stored in the database
[/quote]

Hey, that's cool, thanks @sundog ! Simpler than using dconf Editor, especially if you narrow it down to just phoc:
Code:
dconf dump /sm/puri/phoc/
which only shows the scale-to-fit settings.


RE: Does anyone know where the scale to fit information is store? - ragreenburg - 09-12-2020

(09-11-2020, 10:27 AM)DarkManiels Wrote: [quote pid='77464' dateline='1599840207']
Also,
Code:
dconf dump /
should show you all the values stored in the database

Hey, that's cool, thanks @sundog ! Simpler than using dconf Editor, especially if you narrow it down to just phoc:
Code:
dconf dump /sm/puri/phoc/
which only shows the scale-to-fit settings.
[/quote]
Thank you for that! I'm a few years into using Linux and still learning tons of new stuff. I appreciate the help!