Issue displaying anything from shell script before launching an app from Gmenu2x launcher #595
Replies: 3 comments 6 replies
-
I susspect you want smth to be printed out to tty terminal (not sure cuz u didn't show us the script), but you should know that any child process run by gmenu2x will have any stdout/stderr sent to /dev/null (the same applies to 1.3.3). |
Beta Was this translation helpful? Give feedback.
-
Hi thanks for your answer, your assumption was correct, I didn't think a script would add anything to the discussion since all I could get was a black screen regardless. I since had found this mention in the launch.sh that runs ffplay, as well as in a cfw changelog. Anyway thanks for confirming about the stdout. To be fair, I'm testing several use cases of GPT4o for my day job and this was an ideal candidate for experiments. I finally got to a dirty functional script that does display what I want and works. In any case, here's the first fully functional script, feel free to tell me everything that's bad about it. A robot made it so I won't take any offense at all (btw, I know these color themes are eye cancer, I just wanted to really see the difference when testing).
Thanks again for your help! It would be nice if someone could add a functional version of LGPT in an user friendly manner (I had to get it from a 16gig image of a modified CFW that booted right in LGPT - from a guy who did a not so detailed video about the process). All the same, if you know of a nice place where to find the most recent LGPT build to run on the v90, let me know! |
Beta Was this translation helpful? Give feedback.
-
Foremost you should make sure it is POSIX compliant (not necessary but may protect from many suppries) and can be run within busybox's ash (the one u call by adding #!/bin/sh), to perform basic tests u could use
There are Bittboy builds in https://github.com/djdiskmachine/LittleGPTracker/releases also smbd tested it on V90 (see issues |
Beta Was this translation helpful? Give feedback.
-
Long story short, I am trying to launch LGPT Tracker with a script for color theme selection. (Working on the CFW1.3 on a V90)
I can already run LGPT Tracker fine. But when I try launching it through a themeselection.sh, I'm having issues.
I added the link to the script in the applications folder in sections.
title=LGPTSEL
description=Little Tracker
exec=/mnt/apps/XLGPT/themeselection.sh
clock=702
It works, but if it gets my keystrokes on the buttons and runs lgpt.elf with the appropriate parameters when I hit start, I only get a black screen until then and I can't seem to get anything to be displayed before lgpt starts.
After that lgpt runs properly.
Overall I could try any script and wouldn't seem to get anything on screen.
Can anyone help me figure out what I am getting wrong? I am in no way a developer but after reading most of the docs on this firmware and on gmenu2x I could find here and there, I feel quite stupid.
Thanks in advance, I hope I'm in the right place for this question.
Beta Was this translation helpful? Give feedback.
All reactions