Start mythfrontend on boot [SOLVED]

Post Reply
TheCook
Newcomer
Posts: 8
Joined: Sun Jan 29, 2017 4:38 am
Australia

Start mythfrontend on boot [SOLVED]

Post by TheCook » Sun Jan 29, 2017 4:55 am

Hello world.

I have been trying for some time now to make a useful, small, mythtv frontend 'appliance'. I have a Raspberry Pi 3 Model B running raspbian jessie that has been fully updated using apt-get. I have installed mythtv-light and mythutilities-light in accordance with https://www.mythtv.org/wiki/MythTV_Light I have even followed most of the instructions in https://www.mythtv.org/wiki/Raspberry_Pi. The little beastie is running mythtv OK BUT...

I cannot, for the life of me, get it to start mythtvfrontend when it boots up.

I have tried rc.local (as covered in https://www.raspberrypi.org/documentati ... c-local.md), crontab (using @reboot) and I have tried to use systemd in accordance with https://www.raspberrypi.org/forums/view ... 54#p921354. I have even tried to put something into init.d as discussed in http://www.stuffaboutcode.com/2012/06/r ... rt-up.html

I hope that someone out there has managed to get a light mythfrontend 'appliance' running on a raspberry pi.

Any hints?
Last edited by TheCook on Tue Jan 31, 2017 10:46 pm, edited 1 time in total.

MikeB2013
Senior
Posts: 277
Joined: Mon Jul 25, 2016 4:16 pm
Great Britain

Re: Start mythfrontend on boot

Post by MikeB2013 » Sun Jan 29, 2017 7:21 am

For my pi3 I put a file in .config/autostart/

Name the file mythtv.desktop
with the following contents (3 lines):
[Desktop Entry]
Type=Application
Exec=/usr/bin/mythfrontend --logpath /tmp

Mike

rcarballo
Junior
Posts: 20
Joined: Sat Oct 08, 2016 1:39 am
United States of America

Re: Start mythfrontend on boot

Post by rcarballo » Mon Jan 30, 2017 7:57 pm

Just go to Preferences->Default Applications for LX Session

Enter the path to the mythfrontend and applicable options in the field next to the [Add] button. Click [Add] and you're done. You really shouldn't have to go thru so many hoops to get it to work.

/AC

TheCook
Newcomer
Posts: 8
Joined: Sun Jan 29, 2017 4:38 am
Australia

Re: Start mythfrontend on boot

Post by TheCook » Tue Jan 31, 2017 1:20 am

You guys are the saviour of my sanity!
Both methods seem to work :D .
Rcarballo, I had to edit the menu system to enable the 'Default Applications' bit but I added a line to point to /usr/bin/frontend and it seems to work fine.

I agree that it shouldn't be that difficult to do this. It just took me quite a few attempts at 'simple solutions'.

On to the next issue...

How do I mark this as solved? :oops:

User avatar
bill6502
Developer
Posts: 1031
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: Start mythfrontend on boot

Post by bill6502 » Tue Jan 31, 2017 3:30 am

Just edit the original post and look for the Subject: line near
the top of the page. Append [Solved] to it.

Post Reply