mobian, pinephone camera, and megapixels
#11
(03-25-2021, 02:56 PM)Maus Wrote: I'm sorry to read you lost your images, but you are absolutely right, reading only the introductory comment lines, especially the last two of them, would have helped:

# The post-processing script is responsible for cleaning up
# temporary directory for the burst.

<snip>

Thanks, Maus! Yeah, I'm not much of a script meister so sometimes I take heuristic shortcuts to study behavior rather than studying the code. I've been in computing since before "microcomputers" even existed. FORTRAN, K&R C, and assembler is mostly how I learned a living many years ago.

But at least I finally settled into reviewing the code and I found the bug. I guess it's best to stick to POSIX syntax when using sh and perhaps a new intolerance to legacy code just bit postprocess.sh!

I changed line 69 in postprocess.sh from
Code:
if [ "$CONVERT" == "convert" ]; then

to

Code:
if [ "$CONVERT" = "convert" ]; then
I setup test subdirectories and ran the script from the terminal and it worked only with the change in operator syntax. I have .jpg files now! Big Grin

From https://stackoverflow.com/questions/2044...erators-eq

== is a bash-ism, by the way. It's better to use the POSIX =. In bash the two are equivalent, and in plain sh = is the only one guaranteed to work.

Now I need to discover where to file a bug report.
  Reply


Messages In This Thread
RE: mobian, pinephone camera, and megapixels - by calinb - 03-25-2021, 04:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  bookworm vs trixie discussion for mobian in pinephone regular. zetabeta 65 24,282 07-12-2025, 07:46 AM
Last Post: anonymous
  cryptocurrency on mobian/pinephone biketool 33 50,725 06-30-2025, 02:57 PM
Last Post: biketool
  XLibre for Mobian Hiraghm 1 319 06-30-2025, 01:38 AM
Last Post: Haroldkent
  Axolotl on PinePhone / Mobian arno_nuehm 223 246,642 06-25-2025, 01:19 PM
Last Post: anonymous
  VoIP account on mobian dialer j_s 0 201 06-15-2025, 04:19 PM
Last Post: j_s
  Mobian Pinephone Notification LED biketool 2 412 06-07-2025, 03:19 PM
Last Post: KC9UDX
  Vivaldi Web browser nearly native for Mobian biketool 3 805 05-06-2025, 02:19 AM
Last Post: biketool
  mobian calamares fail merom 2 858 04-29-2025, 02:10 PM
Last Post: mdk
  New camera app gnome-snapshot working on trixie? vusra 4 1,085 04-11-2025, 02:53 AM
Last Post: vusra
  Pinephone seems tobe using 4G data instead of Wifi data grump_fiddle_reinstall 7 2,924 02-20-2025, 02:47 PM
Last Post: puffchumpy

Forum Jump:


Users browsing this thread: 1 Guest(s)