SNApP (System Nonsuch ApP)

Moderator: Forum moderators

User avatar
stemsee
Posts: 656
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 0
Has thanked: 160 times
Been thanked: 104 times
Contact:

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

S.N.ApP-4.8.4.4

This has transtext post editing and translated audio playback.

gettext function has been removed, needs TGT, transtext gettext script.

bug prevented creation of new books.

Improved gettext markup

Last edited by stemsee on Thu Jun 29, 2023 11:30 pm, edited 1 time in total.
User avatar
stemsee
Posts: 656
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 0
Has thanked: 160 times
Been thanked: 104 times
Contact:

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

S.N.ApP-4.8.4.5

keyword bugfixes, and a few small rearrangements.

see next post

Last edited by stemsee on Fri Jun 30, 2023 1:49 pm, edited 1 time in total.
User avatar
stemsee
Posts: 656
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 0
Has thanked: 160 times
Been thanked: 104 times
Contact:

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

While I was learning about system startup. I followed a trail of scripts. So I decided to add a simple function which lists files in relevant directories. Selecting a list item views and edits it, Doubleclicking executes the item. Clicking ACTION executes edits in the Viewer. Edits in the viewer can of course be saved using keyword SAVE.

Directories listed:

/etc/rc.d/*
/etc/X11/*
/root/.fatdog/*
/root/Startup/*
/etc/xdg/Startup/*
/etc/xdg/autostart/*
/etc/xdg/Openbox/*
/etc/xdg/icewm/*

So system initiation starts with the bootloader, then to the OS loader, then to the initrd init, then switch root and fire up busybox init, or rc.sysinit, rc.network, rc.services, rc.Xstartwm, rc.Xdesktop, X11, xdg, .fatdog, Startups or similar. In my opinion one script should do, copying itself from initrd to the new root before switchroot, then continuing to boot to desktop.
link in file

S.N.ApP-4.8.4.6.txt
(66 Bytes) Downloaded 19 times
User avatar
stemsee
Posts: 656
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 0
Has thanked: 160 times
Been thanked: 104 times
Contact:

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

S.N.ApP-4.8.4.7

This release adds a new application startup method without executable or write permissions and no shebang, in addition to /usr/sbin/snapp.
Fixes a bug
Re-orders transeditor so mp3 files follow transtext files.
edit_startups maxdepth 1

User avatar
stemsee
Posts: 656
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 0
Has thanked: 160 times
Been thanked: 104 times
Contact:

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

last upload didnt work for me on a pristine install
snapp-4.8.4.8

https://drive.google.com/file/d/15fRMWS ... io7TIgwq7H
In fact to run the svg seems the menu entry desktopfile isn;t working.
edit Exec=

Code: Select all

Exec=bash -c "head -n3 /root/.config/snapp/icons/wifi7pc.svg | tail -n1 | sh"
User avatar
stemsee
Posts: 656
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 0
Has thanked: 160 times
Been thanked: 104 times
Contact:

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

By spreading an svg comment parenthesis across several lines the code that needs to executed is more easily accessed and piped to sh, while maintaining the integrity of the svg image. Then the encoded script is not executable, but the decoded script is. So without root permissions or even executable permissions we can elevate a series of processes to in the script to root privileges. Also the 'decoded script' is not shown by name in the Task Manager.

svg.png
svg.png (37.48 KiB) Viewed 853 times
svg1.png
svg1.png (63.01 KiB) Viewed 853 times
User avatar
stemsee
Posts: 656
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 0
Has thanked: 160 times
Been thanked: 104 times
Contact:

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

Here is an update!

I had solved, ages ago, a display problem regarding backslash characters in the Viewer. However the solution was only applied to book viewing! Only today did I realize the solution could be applied universally. This means that when maingui opens and on selecting a function from the list, all formatting and backslash characters are viewed as per the original (as in the script). This further means that the viewer can now be more easily used to edit functions (which could be exported for immediate use), and for scripting.

backslash.png
backslash.png (186.13 KiB) Viewed 745 times

Improved 'defconfn' to handle wifiscan and connect and profile creation, as well as connecting default profile, as long as not in wifiscanfn (or "$track"/scn flag does not exist).

This is the plain, unobfuscated snapp script to be placed in /usr/sbin or can be run from anywhere once executable permissions have been applied.
re-uploaded:

snapp.fake.gz
(189.31 KiB) Downloaded 20 times
User avatar
stemsee
Posts: 656
Joined: Sun Jul 26, 2020 8:11 am
Location: lattitude 0
Has thanked: 160 times
Been thanked: 104 times
Contact:

Re: SNApP (System Nonsuch ApP)

Post by stemsee »

'flagfilterfn' should be an external function with its own file, called by the main script. The reason being that I have had to update the 'flags' case statements with new definitions, and I realize that updates will be continuous. So this will be implemented in the next update.

The help function needs a major overhaul and update with more detailed explanations.

Post Reply

Return to “Network”