Solved allow to override HOME / XBMC_HOME ?
#1
I see requests popping up to allow relocating the XBMC_HOME on Android, from the default and uneditable "external storage" as returned by android.

Seems a legit request to me, especially for devices having only a lump nand pseudo-sdcard which might fill up very fast with xbmc.

What's your thoughts on an advancedsetting (or plain setting, but that will probably be problematic) for this?

[EDIT]
I was speaking about HOME, really, i.e. userdata, but it's valid for XBMC_HOME, too, i.e. system data, which takes a solid amount of nand off /data from other apps.
Reply
#2
I like it. It's very easy to fill up 4 or even 8 GB of internal space with thumbnails of a large library.
Reply
#3
advancedsetting is probably not a bright idea, because we read it from XBMC_HOME Wink
But we can find another way.

[EDIT]
A property file in a pre-defined location might do.
Reply
#4
My initial version of the android main implementation checked if there was an external storage available and automatically set XBMC_HOME to that. My reasons where the space being used and that files on an external SD are mostly easier accessible than those in the builtin flash (due to access restrictions etc).
Someome (maybe TheUni, I don't remember) removed that logic completely. I also don't remember the reason for sure but I think it was something about performance.

I'm not sure if this will work with either an advancedsetting or a plain setting as you first need to be able to find the advancedsettings.xml or guisettings.xml in the path pointed to by XBMC_HOME before being able to read its content. After that it's too late to change XBMC_HOME (AFAICT) unless you add some hack to kill the current application class and create a new one with a new XBMC_HOME.

EDIT: Hehe koying you realized it yourself in the meantime.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#5
The idea would be to keep the default as it is, as I'm sure it fits the majority, but to give a "backdoor" for cases where using the nand is an hindrance.
As Ned points out, our home can easily become quite large.
Reply
#6
We do somthing similar on sandboxed ios - for accessing the home via itunes ...

https://github.com/xbmc/xbmc/commit/4599...e40706fed5

Can we detect somehow if a place is editable or not and then decide on our own for android (similar to what i do on ios there?)
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#7
See 4076 (PR)
Apparently, something similar exists on Pivos, which rings a distant bell Wink : http://forum.xbmc.org/showthread.php?tid=184221
Reply
#8
(2014-01-23, 15:02)Koying Wrote: See 4076 (PR)
Apparently, something similar exists on Pivos, which rings a distant bell Wink : http://forum.xbmc.org/showthread.php?tid=184221

Pivos/Linux only and this is setup by the Linux side on boot with no code mods in XBMC itself.
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
allow to override HOME / XBMC_HOME ?00