After my last post i figured it out myself, dunno if this is 100% failsafe or anything.
Anyway,
What i did was i went opened /~/.xbmc/addons/skin.night/720p/Home.xml in gedit
Find item id="13", that is the xml data for the Shutdown-button.
My version of this is really ugly, but it works.
Edit it the whole item tag to this:
PHP Code:
<item id="13">
<label>Suspend</label>
<icon>special://skin/backgrounds/shutdown.jpg</icon>
<thumb>$INFO[Skin.String(Home_Custom_Back_Shutdown_Folder)]</thumb>
<onclick>Suspend()</onclick>
<visible>Skin.HasSetting(HomeMenuNoShutdownButton)</visible>
</item>
It will only be shown if you have Shutdown shown in the Skin settings, remove "visible" tag if you always want to show it.
You can allso make a new one with unique item ID, you dont need to replace shutdown then.
Then i added this t o the line below:
PHP Code:
<item id="666">
<label>Log off</label>
<icon>special://skin/backgrounds/shutdown.jpg</icon>
<thumb>$INFO[Skin.String(Home_Custom_Back_Shutdown_Folder)]</thumb>
<onclick>System.LogOff</onclick>
<visible>Skin.HasSetting(HomeMenuNoShutdownButton)</visible>
</item>
There can be alot of improvements to this, you might even be able to add it with Custom home items, but i dont have time to dig deeper into this.
Cheers

Search
Help