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 08-10-2023, 10:08 AM   #31
jrw174
Connoisseur
jrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the rough
 
Posts: 78
Karma: 7126
Join Date: May 2023
Device: PocketBook Era
I made changes to the following files:
/mnt/ext1/system/config/desktop/view.json
/mnt/ext1/system/config/desktop/apps.json
/ebrmain/config/desktop/view.json
/ebrmain/config/desktop/apps_db.json
/ebrmain/config/desktop/apps/apps.json

After doing this, the icon has disappeared for view. While not the intended result, this is interesting. Something in one of these files has made the icon disappear. Now to find which file that could be
jrw174 is offline   Reply With Quote
Old 08-10-2023, 10:27 AM   #32
jrw174
Connoisseur
jrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the rough
 
Posts: 78
Karma: 7126
Join Date: May 2023
Device: PocketBook Era
I removed all references to KOReader from the files:
/mnt/ext1/system/config/desktop/view.json
/mnt/ext1/system/config/desktop/apps.json
/ebrmain/config/desktop/view.json
/ebrmain/config/desktop/apps_db.json
/ebrmain/config/desktop/apps/apps.json

Added the entry back into /mnt/ext1/system/config/desktop/view.json. The entries I added:
U_koreader
U_KOReader
koreader
KOReader

After reboot, I saw an 2 errors that it couldn't find koreader and KOReader.

Removing both those entries, and having U_KOReader and U_koreader remaining, the icon disappeared again.

So it seems the change can be made in /mnt/ext1/system/config/desktop/view.json. Just need to figure out exactly what we need
jrw174 is offline   Reply With Quote
Advert
Old 08-10-2023, 10:38 AM   #33
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: 5,201
Karma: 10057265
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
Got it!

Add this to the start of the file mnt/ext1/system/config/desktop/view.json:

Code:
{
    "version": "5",
    "applications": {
		"U_Koreader": {
			"path": "/mnt/ext1/applications/koreader.app",
			"title": "KOReader",
			"icon": "/mnt/ext1/applications/icons/koreader.bmp",
			"focused_icon": "/mnt/ext1/applications/icons/koreader_f.bmp"
		},
        "_comment": [
...
Then add: "U_Koreader",
to whichever group list you want the icon to appear in further down the file.

If it's the last entry in the section no comma at the end: "U_Koreader"
All apps listed before it MUST have a comma however.

Last edited by neil_swann80; 01-16-2024 at 11:22 AM.
neil_swann80 is offline   Reply With Quote
Old 08-10-2023, 10:58 AM   #34
jrw174
Connoisseur
jrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the rough
 
Posts: 78
Karma: 7126
Join Date: May 2023
Device: PocketBook Era
GREAT WORK!

Looks good on my side! I'll create a github project with all this info and share the link later.

I'll post on the Dutch form, and KOReader project as well. Might be helpful for users and maybe bring on some new ideas

Thanks again everyone
jrw174 is offline   Reply With Quote
Old 08-10-2023, 11:14 AM   #35
EastEriq
Groupie
EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!
 
Posts: 169
Karma: 100516
Join Date: Jan 2018
Device: Cybook Orizon, PocketBook Touch HD
[I take that the finding applies to FW 6.X. On my device I simply don't have the *.jsons mentioned, I have a different set of *.cfg and *.json in not exactly the same folders].

Still not resolved about what is the ideal pixel height of the icons in my case. The attached is a high-contrast stylish 112px, which still looks a couple of pixels too short.
Attached Files
File Type: zip desktop_app_koreader.zip (4.7 KB, 68 views)
EastEriq is offline   Reply With Quote
Advert
Old 08-10-2023, 11:27 AM   #36
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: 5,201
Karma: 10057265
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
Likely is a 6.x firmware difference. I don't have a PB device running 5.x to confirm.

I'm going to try and find a system icon file next so we can get the exact dimensions.

Thanks for new icon @EastEriq!

Last edited by neil_swann80; 08-10-2023 at 12:50 PM.
neil_swann80 is offline   Reply With Quote
Old 08-10-2023, 12:05 PM   #37
jrw174
Connoisseur
jrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the rough
 
Posts: 78
Karma: 7126
Join Date: May 2023
Device: PocketBook Era
Any changes made to /ebrmain/ don't change after reformat or factory reset fyi. I am doing a from scratch guide for this and wanted to make sure you don't need root. I'll mention other quirks if I find them
jrw174 is offline   Reply With Quote
Old 08-10-2023, 12:19 PM   #38
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: 5,201
Karma: 10057265
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
Quote:
Originally Posted by jrw174 View Post
Any changes made to /ebrmain/ don't change after reformat or factory reset fyi. I am doing a from scratch guide for this and wanted to make sure you don't need root. I'll mention other quirks if I find them
I haven't made any changes at all under root for this (and Ive hidden items, created and removed groups etc), so can all be undone by deleting the userspace versions of en.txt and view.json. So a factory reset would work correctly.

en.txt only really needed for renaming stock apps (or renaming "USER'S" group in apps menu) as user apps and groups can be renamed in view.json.

I guess you could even (mostly) ditch en.txt for simplicity and add the stock apps to the applications section of view.json too; then you could keep renaming to a single file and all the custom icons for stock and user apps in a single easily referenced directory. As there are loads of different xx.txt language files this may be a good idea! - FYI tested this and it works, you can set title and set a path for icons for stock apps - app path not required for stock apps (will generate an error), only needed for user apps

Add stock apps to applications section of "view.json" like so:
Code:
"PB_Calc": {
    "title": "",
    "icon": "",
    "focused_icon": ""
},
With the quotes empty the default app name/text and icons will be shown, but they can be easily populated and customised in the future.

If you want to hide an app from the Apps menu, stock or user, remove the reference to it in the groups section further down the file.

Last edited by neil_swann80; 08-10-2023 at 02:27 PM.
neil_swann80 is offline   Reply With Quote
Old 08-10-2023, 02:30 PM   #39
jrw174
Connoisseur
jrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the rough
 
Posts: 78
Karma: 7126
Join Date: May 2023
Device: PocketBook Era
Here is the Github link to the guide: https://github.com/jjrrw174/PocketBo...Customizations

I'll edit the first post I made to use this link instead of the steps I had.

Thanks all
jrw174 is offline   Reply With Quote
Old 08-10-2023, 03:13 PM   #40
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: 5,201
Karma: 10057265
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
Just realised there's a better way to hide the apps in "view.json". Just add a underscore to the start of the app name in the groups section and it's treated as a comment and ignored. Easier to disable/enable in future then.

Code:
"PB_Gallery",
"PB_Library",
"_PB_Notes",
PB_Notes would be hidden.
neil_swann80 is offline   Reply With Quote
Old 08-10-2023, 03:21 PM   #41
jrw174
Connoisseur
jrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the rough
 
Posts: 78
Karma: 7126
Join Date: May 2023
Device: PocketBook Era
Found a slight problem

The open with Koreader option doesn't seem to work after these changes. Going to take a look
jrw174 is offline   Reply With Quote
Old 08-10-2023, 03:29 PM   #42
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: 5,201
Karma: 10057265
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
Quote:
Originally Posted by jrw174 View Post
Found a slight problem

The open with Koreader option doesn't seem to work after these changes. Going to take a look
Working fine for me. I can long-press from the library and open with KOReader just fine. It then remembers and opens that book again with KOReader as default after a reboot.
neil_swann80 is offline   Reply With Quote
Old 08-10-2023, 03:33 PM   #43
jrw174
Connoisseur
jrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the rough
 
Posts: 78
Karma: 7126
Join Date: May 2023
Device: PocketBook Era
Oh. Strange. When I long press and the open with menu appears I see KOReader (use to be koreader.app) and it does nothing.

Maybe I need to clean install KOReader

Edit: Found it. I didn't put the system folder in system lol
jrw174 is offline   Reply With Quote
Old 08-10-2023, 04:37 PM   #44
EastEriq
Groupie
EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!EastEriq rocks like Gibraltar!
 
Posts: 169
Karma: 100516
Join Date: Jan 2018
Device: Cybook Orizon, PocketBook Touch HD
I decided that the optimal icon height on PB631 is 116px.

In my last attempts I didn't even need to reboot the device to see the changed icons.
Attached Files
File Type: zip desktop_app_pb-mahjong.zip (3.2 KB, 42 views)
EastEriq is offline   Reply With Quote
Old 08-11-2023, 06:46 AM   #45
kaznelson
Old Kaz
kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.
 
kaznelson's Avatar
 
Posts: 203
Karma: 1064151
Join Date: May 2010
Device: PocketBook Era
Another icons variant for KOReader.
Attached Thumbnails
Click image for larger version

Name:	desktop_app_koreader.png
Views:	45
Size:	1.8 KB
ID:	203114  
Attached Files
File Type: zip desktop_app_koreader_v2.zip (2.3 KB, 63 views)
kaznelson is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove question mark icons KayLee Calibre 2 03-05-2016 11:38 AM
desktop icons disappeared after reboot futureway enTourage eDGe 5 11-30-2011 07:27 AM
Totally stupid question: where's my app drawer? maxbookworm Nook Developer's Corner 6 01-26-2011 10:13 PM
DR800 Icons for desktop files Iñigo iRex Developer's Corner 3 05-16-2010 06:26 PM
no desktop icons on boot-up Unregistered Lounge 11 08-16-2005 12:47 PM


All times are GMT -4. The time now is 09:39 AM.


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