If the apk cache is outdated (first installation) and you try to upgrade
with this "-a" argument without configuring a network, then apk will
just strip every packages that are not available.
It then leave the phone in a very broken state.
The -a was used to handle mainlining software from pmaport to aport
(where pmaport uses 9999 version numbers). As we do not rely that much
on those softwares (that are now mainlined), we strip this unsafe
argument.
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
This add a script to use either the user hook or the default one.
Sometime we checked the user hook or a default code. We move this
default code in a defaut hook.
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
mnc goal is to display when will occurs the next cron job.
We drop the "sxmo_screenlock.sh rtc" command and the
SXMO_RTCWAKEINTERVAL variable. We will now only use
"sxmo_screenlock.sh crust" which mean suspend until next cron job
(-2 seconds).
To replicate the old behavior of the blinking phone then returning to
suspension (if needed) we now use a new script.
By example:
*/15 * * * * DISPLAY=:0 sxmo_rtcwake.sh sleep 10
This will trigger a 10s sleep task every 15 minutes (the old default
rtcwake hook).
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This fixes a bug where I was getting "binary file
~/.local/modem/modemlog.tsv matches" instead of getting a list of recent
contacts in sxmo_modemtext.sh. Turns out, having gnu grep breaks the behaviour
of showing a list of contacts. This patch ensures we are always using busybox
grep.
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This implement a dbus monitor for networkamanger and is useful to
start/stop/restart certain things in user-defined hooks when
connectivity is gained/lost. By default all
it does is ensure the status bar is updated quickly to reflect the
network status.
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This make gestures convenient enough to use the app only with gestures.
All the scroll direction are used :
Prev link Scroll Up Open in new tab
Back prev page Open link
Close tab Scroll Down Next Link
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
As we rely on the terminal name to use the contextual menu, we used the
st target directly, preventing to use the taillog command in terminal
mode.
Add an optional TERMNAME env variable to manage this smoothly.
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
As we now rely on sxmo_terminal.sh and the TERMCMD env variable, we then
can simplify things.
In the sxmo dwm context, TERMCMD="st -e" so sxmo_terminal.sh will run
the command in st.
In the ssh context, we dont have TERMCMD so sxmo_terminal.sh will just
run the command
In a tmux context, we can set TERMCMD="tmux split-window" with
set-environment -g TERMCMD "tmux split-window"
so sxmo_terminal.sh will run the command in a splited window.
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
RTC loops was storing the good wake up reason but not the classic crust.
We fix it to notify the modemmonitor with the reason of the wake. This
should solve the issue and put the phone back to crust after sms.
In the last commits I added the country code in the early stages of the
phone numbe validation.
I think it was a mistake as it make ad non prefixed phone number to be
added in the tsv file.
I revert this part here.
We now use uncontextualized event name from lisgd as leftrightcorner. We
will determine the action name only in the input handler. It allow
events to match multiple action depending on contexts.
We also add some basics events as left/rigth/up/down and
twoleft/tworight/twoup/twodown and use some of them.
Use use twoup and twodown to scroll in less and right left to
change the page.
We also prefer use case switch instead of if conditions.
We remove this HANDLE variable usage and exit directly when the event
has been handled.
We also add some methods as type, key or typeenter to simplify some
code.
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
Enforcing -e break some possibilities to use TERMCMD that dont use it.
TERMCMD should be setup in xinit. This way, in ssh mode, the value still
is empty. This way, some custom bash or tmux config could use
it, configuring it.
When you number of conversation start to grow, it rapidly take some
seconds for the menu to open itself. The [ -d "folder" ] test really is
uneficient.
This simplify this part as we now ask sxmo_contacts to only list texted
contacts.
I regularly had situations where I received a whole pile of
notifications that were hard to close. Dunst is configured to
open the notification upon click and close upon right click, but
we can't do a right click on our touchscreens, and I didn't want to
override the default left-click behaviour that might be useful.
This should hopefully solve it.
(this solution requires dbus-x11 to be installed)
Signed-off-by: Stacy Harper <contact@stacyharper.net>