Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > PocketBook > PocketBook Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-01-2026, 02:54 PM   #1
neil_swann80
0000000000101010
neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.neil_swann80 ought to be getting tired of karma fortunes by now.
 
neil_swann80's Avatar
 
Posts: 6,110
Karma: 13081923
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
Hide user app section from app drawer

A simple device reboot/restart app with the option of toggling the visibility of the "USERS" apps section in the app drawer.

To use:
  1. Rename the file extension of any app in the "USERS" section you wish to hide from .app to .APP
  2. Run reboot.app and select "TOGGLE"

(See attached thumbnail for an animated GIF image of the toggle process in action)

TLDR - More info
Spoiler:

For system apps in the app drawer we can already hide, rename, move between sections and change the icons by editing view.json
(We can also move apps from the "Users" section by adding them to view.json - and also assign icons etc)

I still have plenty of third party apps and scripts I use regularly that I don't want to permanently see cluttering the app drawer; previously I manually moved them to a sub-folder and back as needed, rebooting my device to see the changes, but this is cumbersome.

After a bit of trial and error I noticed that apps would still show in the drawer if the fie extension was capitalized (.APP rather than .app) which allows them to be differentiated. Also restarting the system bookshelf.app refreshes the app drawer view without a reboot.

I wrote some shell commands to automate the process and added it to my reboot script.
Simply rename any user app extension (.app to .APP) that you wish to be able to toggle visibility of.

If you just want the toggle ability you'll only need the toggle_user_apps function.
I find having the reboot script as a permanent app ("Reboot" icon from the animated GIF) far more convenient than running the script by PBTerm.

Initiating a reboot via the script should display a pocketbook logo during the process. You can add your own reboot splash screen by creating the file:
/mnt/ext1/system/resources/Line/pocketbook_logo_software.bmp
(Take a screenshot of an image from your gallery app to guarantee correct BMP format)

CODE - Text view
Spoiler:

Code:
#!/bin/sh

restart_device() {
iv2sh SetActiveTask $$
/ebrmain/bin/run_script -clear_screen -bitmap=pocketbook_logo_software
iv2sh reboot
}

restart_bookshelf() {
iv2sh CloseTask bookshelf.app
sleep 1
iv2sh SetActiveTask `pidof bookshelf.app`
}

toggle_user_apps() {
ext1=.APP
ext2=.hidden
cd /mnt/ext1/applications
for file in ./*$ext1; do
  [ -f "$file" ] || continue
  tmp_ext1=$ext1
  ext1=$ext2
  ext2=$tmp_ext1
  break
done
for file in ./*$ext2; do
  [ -f "$file" ] || continue
  new_file="${file%$ext2}$ext1"
  mv "$file" "$new_file"
done
restart_bookshelf
}

get_user_input() {
count=$(( ${count:-0} + 1 ))
[ "$count" -gt 3 ] && exit 1
user_prompt=/ebrmain/cramfs/bin/dialog
$user_prompt 2 "" "Restart Device?" "YES" "NO" "TOGGLE"; user_choice=$?
case $user_choice in
  1) restart_device;;
  2) restart_bookshelf;;
  3) toggle_user_apps;;
  *) get_user_input;;
esac
}

get_user_input
exit 0
Attached Thumbnails
Click image for larger version

Name:	example.gif
Views:	98
Size:	308.7 KB
ID:	226354  
Attached Files
File Type: zip reboot.zip (613 Bytes, 21 views)

Last edited by neil_swann80; 10-15-2026 at 07:41 AM.
neil_swann80 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove icons from PocketBook desktop and app drawer jrw174 PocketBook Developer's Corner 87 06-04-2025 02:28 PM
EPUB of manual seems to hide everything from section 1.1.1 to section 2 halloleo Calibre 9 07-17-2021 02:45 AM
Free Amazon App Bundles | App Deals | $5 App/Game Credit DreamWriter Deals and Resources (No Self-Promotion or Affiliate Links) 0 12-23-2013 06:06 PM
Totally stupid question: where's my app drawer? maxbookworm Nook Developer's Corner 6 01-26-2011 11:13 PM
iLiad Hide toolbar and pagebar in a Java app ? ouais32 iRex Developer's Corner 5 01-18-2008 05:04 AM


All times are GMT -4. The time now is 03:57 PM.


MobileRead.com is a privately owned, operated and funded community.