Is there a sensible way to change that? I find this quite irritating. I'm not able to seriously use the phone one handed anyway, I don't understand how people can reach the entire keyboard while holding the phone in the same hand. If you can't type, you also don't need to access the address bar.
Also this change breaks things. For example permitting location access is broken. Go to any website that asks for your location, for example osm.org, hit the 'show my location' button -> permission dialog does not show (or maybe shows but offscreen). I would not be surprised if there were more things like that.
Oh so read the script correctly then? Does it make any sense at all to capture a burst when only one picture is being used? I guess a setting that by default matches the default postprocess.sh makes more sense then.
The toggle already exists, I just don't know what the default value is.
Thanks.
It gets even better. When I comment that line and postprocess.sh is triggered by Megapixels that seems to reliably solve the problem. Id I run postprocess.sh manually the exit at line 91 does not happen.
Maybe I was wrong about the backslashes. I now think the problem is somehow https://gitlab.com/postmarketOS/megapixels/-/blob/master/data/postprocess.sh#L91 A debug echo before it is reached, one afterwards is not. Oh how much I hate shell scripts.
Something else must be wrong too. After reaching this point https://gitlab.com/postmarketOS/megapixels/-/blob/master/data/postprocess.sh#L91 it seems to exit as well somehow? I really don't understand.
I could narrow it down to this command. https://gitlab.com/postmarketOS/megapixels/-/blob/master/data/postprocess.sh#L86 The script seems to just exit at that point without the command to return. The problem seems to be with those backslashes. If I remove them the script works fine. The shell in use is ash as provided by busybox.
Thanks. That part of the script is not reached. That also explains why the option to remove the DNG files does not work (which I reported here: https://todo.sr.ht/~martijnbraam/Megapixels/64). I will sprinkle in more debug echos to try and figure out what is happening.
I deleted the version in ~/config/megapixels
to make sure that there is no old/modified version around.
I do not have a megapixels directory in /etc.
I re-installed megapixels to make sure to get the packaged /usr/share/megapixels/postprocess.sh
.
My /usr/share/megapixels/postprocess.sh
is identical to the one in this repo.
$ wget https://gitlab.com/postmarketOS/megapixels/-/raw/master/data/postprocess.sh
$ diff -u postprocess.sh /usr/share/megapixels/postprocess.sh
$
Is it possible that postprocess.sh exits early for some reason? My attempts to debug this failed miserably so far, I just don't know how to approach that with shell scripts. Is it possible that postprocess.sh relies on bash features and thus behaves differently running via busybox shell?
Using the default prostprocess.sh
$ ls -lah /usr/share/megapixels/postprocess.sh
-rwxr-xr-x 1 root root 2.7K Nov 20 23:39 /usr/share/megapixels/postprocess.sh
megapixels-1.4.2-r0
pmOS edge
SXMO wayland edge
I know it should get deleted but it clearly isn't. These are the megapixels directories in my /tmp.
drwx------ 2 murks seat 4096 Dec 16 09:55 megapixels.BkKBcf
drwx------ 2 murks seat 4096 Dec 15 14:23 megapixels.CadjLP
drwx------ 2 murks seat 4096 Dec 16 09:55 megapixels.CgAMHG
drwx------ 2 murks seat 4096 Dec 16 09:32 megapixels.DPOakj
drwx------ 2 murks seat 4096 Dec 17 11:17 megapixels.EAgnea
drwx------ 2 murks seat 4096 Dec 16 09:56 megapixels.ELenMJ
drwx------ 2 murks seat 4096 Dec 16 17:50 megapixels.FHLdbC
drwx------ 2 murks seat 4096 Dec 16 09:33 megapixels.GPBKec
drwx------ 2 murks seat 4096 Dec 15 14:17 megapixels.GaKfGA
drwx------ 2 murks seat 4096 Dec 17 11:17 megapixels.GcGEaK
drwx------ 2 murks seat 4096 Dec 16 09:56 megapixels.HKbELl
drwx------ 2 murks seat 4096 Dec 14 10:25 megapixels.HpmGik
drwx------ 2 murks seat 4096 Dec 17 11:18 megapixels.IAGoEF
drwx------ 2 murks seat 4096 Dec 15 14:22 megapixels.IbaDOA
drwx------ 2 murks seat 4096 Dec 14 08:42 megapixels.IkALlD
drwx------ 2 murks seat 4096 Dec 17 11:19 megapixels.IkDKkb
drwx------ 2 murks seat 4096 Dec 16 09:33 megapixels.InlCnh
drwx------ 2 murks seat 4096 Dec 16 17:50 megapixels.JAHbfE
drwx------ 2 murks seat 4096 Dec 15 14:17 megapixels.JDbkOH
drwx------ 2 murks seat 4096 Dec 17 11:08 megapixels.Jpefid
drwx------ 2 murks seat 4096 Dec 17 11:05 megapixels.Jpepen
drwx------ 2 murks seat 4096 Dec 17 11:08 megapixels.KEHBPh
drwx------ 2 murks seat 4096 Dec 14 10:25 megapixels.KJgfOC
drwx------ 2 murks seat 4096 Dec 15 08:59 megapixels.KMIlFI
drwx------ 2 murks seat 4096 Dec 14 10:26 megapixels.KnFMoi
drwx------ 2 murks seat 4096 Dec 17 10:39 megapixels.LIEAoI
drwx------ 2 murks seat 4096 Dec 15 14:17 megapixels.LeMKoM
drwx------ 2 murks seat 4096 Dec 17 11:07 megapixels.LlnlgG
drwx------ 2 murks seat 4096 Dec 12 19:11 megapixels.MFiLMP
drwx------ 2 murks seat 4096 Dec 17 11:06 megapixels.MGkhhG
drwx------ 2 murks seat 4096 Dec 13 08:49 megapixels.MkfBei
drwx------ 2 murks seat 4096 Dec 12 19:12 megapixels.MomfBK
drwx------ 2 murks seat 4096 Dec 15 08:59 megapixels.NDAcKG
drwx------ 2 murks seat 4096 Dec 13 08:49 megapixels.NmFppf
drwx------ 2 murks seat 4096 Dec 17 11:09 megapixels.NofPFi
drwx------ 2 murks seat 4096 Dec 17 11:10 megapixels.NpjLme
drwx------ 2 murks seat 4096 Dec 15 14:17 megapixels.OMHCBc
drwx------ 2 murks seat 4096 Dec 17 11:17 megapixels.OcbpCN
drwx------ 2 murks seat 4096 Dec 16 09:55 megapixels.Panjhd
drwx------ 2 murks seat 4096 Dec 17 11:07 megapixels.PdGlnM
drwx------ 2 murks seat 4096 Dec 16 17:50 megapixels.PfgnKk
drwx------ 2 murks seat 4096 Dec 15 14:17 megapixels.PmlGKL
drwx------ 2 murks seat 4096 Dec 17 11:05 megapixels.bBogDa
drwx------ 2 murks seat 4096 Dec 14 08:42 megapixels.bDIled
drwx------ 2 murks seat 4096 Dec 15 08:59 megapixels.bGGloB
drwx------ 2 murks seat 4096 Dec 17 11:18 megapixels.bPoAnh
drwx------ 2 murks seat 4096 Dec 17 11:10 megapixels.bbFPFI
drwx------ 2 murks seat 4096 Dec 15 14:22 megapixels.cIkLnA
drwx------ 2 murks seat 4096 Dec 12 19:12 megapixels.dakMin
drwx------ 2 murks seat 4096 Dec 17 11:19 megapixels.eFEloD
drwx------ 2 murks seat 4096 Dec 17 11:08 megapixels.eIJboP
drwx------ 2 murks seat 4096 Dec 17 10:39 megapixels.eiHiMM
drwx------ 2 murks seat 4096 Dec 15 08:59 megapixels.fALdbD
drwx------ 2 murks seat 4096 Dec 14 10:25 megapixels.gJaPiL
drwx------ 2 murks seat 4096 Dec 13 09:04 megapixels.gKpPKO
drwx------ 2 murks seat 4096 Dec 15 08:59 megapixels.gLfHln
drwx------ 2 murks seat 4096 Dec 15 14:21 megapixels.geAhdk
drwx------ 2 murks seat 4096 Dec 17 11:07 megapixels.hipJFD
drwx------ 2 murks seat 4096 Dec 14 08:42 megapixels.iIlFke
drwx------ 2 murks seat 4096 Dec 17 11:09 megapixels.iaCCEJ
drwx------ 2 murks seat 4096 Dec 16 09:34 megapixels.idJcaP
drwx------ 2 murks seat 4096 Dec 15 08:59 megapixels.jJCIPG
drwx------ 2 murks seat 4096 Dec 15 14:17 megapixels.jOhHGh
drwx------ 2 murks seat 4096 Dec 17 10:07 megapixels.jaFHON
drwx------ 2 murks seat 4096 Dec 15 14:23 megapixels.kHmlFK
drwx------ 2 murks seat 4096 Dec 15 14:22 megapixels.lLDIgG
drwx------ 2 murks seat 4096 Dec 16 09:33 megapixels.liKnCo
drwx------ 2 murks seat 4096 Dec 14 08:42 megapixels.mEokph
drwx------ 2 murks seat 4096 Dec 17 11:06 megapixels.mINflH
drwx------ 2 murks seat 4096 Dec 16 09:32 megapixels.mgCleE
drwx------ 2 murks seat 4096 Dec 17 11:07 megapixels.ngnELH
drwx------ 2 murks seat 4096 Dec 14 10:26 megapixels.noOohH
drwx------ 2 murks seat 4096 Dec 16 09:33 megapixels.npJhAN
drwx------ 2 murks seat 4096 Dec 15 14:22 megapixels.oBgbLh
drwx------ 2 murks seat 4096 Dec 17 11:18 megapixels.oGnncM
drwx------ 2 murks seat 4096 Dec 17 11:06 megapixels.oMbEga
drwx------ 2 murks seat 4096 Dec 17 11:09 megapixels.pLIMDG
drwx------ 2 murks seat 4096 Dec 17 11:19 megapixels.pfMFFG
megapixels-1.4.2-r0, PMOS edge, SXMO git, Pinephone
To reproduce take a picture, wait for postprocess.sh to finish and see that the directory in /tmp is still present, those take the form of megapixels.gKpPKO
and take up about 30 MB.
Since PMOS currently fails to clean up /tmp (pmaports#1342) these huge directories accumulate despite reboots and yesterday my /tmp fs became full, which lead to an unusable system.
I do not know how to debug shell scripts, I think there is a cleanup functionality in the default postprocess.sh already but it clearly doesn't work.
As it stands the user has to manually disable the flash each time Megapixels starts. I do not think one typically wants to take pictures with flash (just look at the results). I think it would make sense if Megapixels would just remember the setting. The default should be off though.
megapixels-1.4.2-r0, PMOS edge, SXMO git, Pinephone
To reproduce take a picture, wait for postprocess.sh to finish and see that the directory in /tmp is still present, those take the form of megapixels.gKpPKO
and take up about 30 MB.
Since PMOS currently fails to clean up /tmp (pmaports#1342) these huge directories accumulate despite reboots and yesterday my /tmp fs became full, which lead to an unusable system.
I do not know how to debug shell scripts, I think there is a cleanup functionality in the default postprocess.sh already but it clearly doesn't work.
I would expect /tmp to be clean after a reboot.
Files and directories in /tmp are persistent across reboots.
Look into /tmp, you should see some old files. Otherwise write a file to /tmp, reboot and see whether it is still there.
Pinephone PMOS CE
master
branch)v21.06
v21.12
Unsure, I installed it a couple months ago.
Looking at the mount output of my Arch desktop I see:tmpfs on /tmp type tmpfs (rw,nosuid,nodev,nr_inodes=409600,inode64)
, so presumably something like this would be the solution.
I noticed the issue because Megapixels writes large files to /tmp and fails to clean them up. As a consequence the file system filled up completely and the device became unusable. Luckily I could figure out the cause and recover using SSH.
Thanks Oliver, I will try to use ublock origin instead.
Pinephone with PMOS edge and SXMO.
I can add a bookmark but when I try to enter a name for it using the on-screen keyboard the bookmark-popup closes. Same for editing an existing bookmark.
The only way to edit bookmarks that I found is to go burgermenu -> Library -> Bookmarks -> Show All Bookmarks. It is a terrible user experience to edit the names there but at least it works.
Pinephone with PMOS edge and SXMO.
I tried to install this plugin: https://addons.mozilla.org/en-US/firefox/addon/i-dont-care-about-cookies/ Firefox would not let me install the plugin, the page claims that the plugin does not supported Android. Indeed the UA is set to Firefox on Android. Just clearing the UA-override does not help as the page then thinks that the browser is not Firefox at all.
Sure, the root of the problem is that the plugin-page disables functionality based on sniffed UA, but still, it would be nice if we could just install plugins without mucking about. Is there a way to set the UA for the plugin page specifically?