2012-04-13, 20:22
Hello,
how to add shutdown and reboot on home screen menu? thanks
how to add shutdown and reboot on home screen menu? thanks
(2012-04-16, 16:00)snavaro Wrote: Based on Jezz_X's suggestions, I was able to get the "Shutdown/Quit/Exit" label on the Main Menu. (I used Exit for my Label). Make a backup of the home file before doing anything.thanks..;I'll try it out but with "XBMC.Quit" looks like will only quit XBMC but not shut down the system. what will be the code to have it shutdown...
Here is what I modified:
1. Added new item as <item id="12"> Must be a unique id number
2. Added <label>Exit</label> (I could not find where the codes were referenced, they weren't in strings.xml so I just made a text label.)
3. Added <onclick>XBMC.Quit()</onclick> I believe this is the command to shut down XBMC
4. If you want to add a unique background for this selection, name it shutdown.jpg and place it in the backgrounds folder. Then reference it using <icon>special://skin/backgrounds/shutdown.jpg</icon>. Otherwise, whatever file is referenced in the <icon></icon> section will appear.
5. I deleted the <thumb> and <visible> lines with no apparent ill effect.
6. Save the modified home.xml file
I am not well versed in xml programming, so I am not sure if this will do the trick in all situations, but it seemed to work for me. I did not attempt to remove the original shutdown button in the lower left corner, but I assume that could be done by commenting out the appropriate lines.
Hope that helps.
(2012-04-16, 22:50)snavaro Wrote: I have a question that I am sure only a novice would ask. In the home.xml file, the menu items are labeled with id numbers (eg. <label>21034</label>), and not the actual text that appears on the home screen (ie Weather, Video, Movies, Programs, Settings, etc.) I know that somewhere there must be a cross reference to these labels, but I have been unable to find how the program knows what to replace the label id numbers with. I looked in the strings.xml file and I could not find it there. Thanks for any insight.