Our forum migration to Discourse is underway and scheduled to last through June 21. During the migration, the forums will be read-only, except for a single temporary forum (contents of which will not be getting transferred). Read our announcement post for more information about the forum migration.
Hey folks, there is a new Podcast category for forums https://forums.plex.tv/categories/podcasts
If you have not already, we suggest setting your Plex username to something else rather than email which is displayed on your posts in forum. You can change the username at https://app.plex.tv/desktop#!/account
Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

Launch app/script/shortcut from Plex (openPHT) home menu

kinema_KLEINkinema_KLEIN Members, Plex Pass Posts: 18 Plex Pass

Is there any method for adding another 'Section' to the Plex home menu that would launch a custom script or application? Sections as in Channels, Shared Content, Watch Later, etc on the home menu like this: https://i.imgur.com/9dkOiuP.jpg

Currently running OpenPHT on a MacMini, same machine as plex server.
Use case is to have a section, or shortcut, like 'GAMES' to launch script closing PHT and launching Steam Big Picture (or any action defined in script)..

There is a related setting called:"'Play File' on homemenu" -- that allows manually defining an additional menu item for playing a particular movie/show (i think), but that looks to be tied to video file formats only.

Answers

  • TonioRoffoTonioRoffo Members, Plex Pass Posts: 196 Plex Pass

    I like this, it would open up a lot of possibilities for customisation.

  • swordsandtequilaswordsandtequila Members, Plex Pass Posts: 341 Plex Pass

    Not sure about Plex, but flirc and your remote would do the job.

    2009 Mac Pro, 4.1->5.1, X5690 3.46 GHz 6 core / 24GB ram
    120GB Mercury Accelsior_E2 PCI-e SSD / High Point RocketU 1144D PCI-e 4-port USB 3
    ASUS GeForce GTX 650 2GB / WiFi ac / Iogear Bluetooth 4.0
    6-4TB Hitachi Deskstar Coolspin HDs [16TB RaidZ2 - OpenZFS]

  • HeciruamHeciruam Members, Plex Pass Posts: 160 Plex Pass

    Since it will never be on PMP I would really like to know if there is a chance for this to be implemented in openPHT.

    I currently boot into Steam and go to PLEX or my other game launcher(Launchbox) from there. I would like to have it the other way around because I mostly watch movies.

  • bkurybkury Members Posts: 393 ✭✭✭
    edited September 2016

    You can already do that with OpenPHT, it's just not implemented in a "user/gui friendly" way right now ... here is an example how to do it manually with the default skin :

    • Edit "skin.plex/720p/HomeMenu.xml" and look for this code :
    <item id="121">
       <description>Play File</description>
       <label>$LOCALIZE[32205]</label>
       ... more code ...
    </item>
    

    now add the following new item after the Play File item like this :

    <item id="121">
       <description>Play File</description>
       <label>$LOCALIZE[32205]</label>
       ... more code ...
    </item>
    
    <item>
       <label>My Program Name</label>
       <onclick>System.Exec(c:\mypath\myprogram.exe)</onclick>
    </item>
    

    OSX/Linux users should change the path accordingly!

    edit: You can also use "System.Exec()" in keymaps file, e.g. press key "X" to open an application ...

    Save your changes and restart OpenPHT ...
    You should now have a new home menu item "My Program Name" which executes "C:\mypath\myprogram.exe" on click ...

    Night Skin v1.8.6  |  Support Thread  |  Github

    OpenWeatherMap Channel  |  Github

    OpenPHT  |  Github  |  Development Builds

    Please consider to support my work, thank you!

    btn_donate_SMgif

  • HeciruamHeciruam Members, Plex Pass Posts: 160 Plex Pass

    Thats exactly what I was looking for!

    Thanks!!!!

  • tooviraltooviral Members, Plex Pass Posts: 5 Plex Pass

    Anyway to do this with aeon nox?

    all-banner.jpg

  • MagnumDoomguyMagnumDoomguy Members, Plex Pass Posts: 487 Plex Pass

    Aeon Nox 5 Skin for OpenPHT

    Like Aeon Nox 5 and want to donate some money to help support development? Click here to donate.

  • _ToXIc__ToXIc_ Members, Plex Pass Posts: 37 Plex Pass

    this is pretty kewl.. what custom scripts are you guys running?

  • AaronG85AaronG85 Members, Plex Pass Posts: 76 Plex Pass

    Can you use this to launch programs?

Sign In or Register to comment.