From: | "Doug Goldstein (cardoe)" <cardoe@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in media-tv/mythtv/files: mythfrontend.conf xinitrc-r1 mythfrontend.wrapper |
Date: | Tue, 10 Jul 2012 04:14:58 |
Message-Id: | 20120710041443.BC33C20063@flycatcher.gentoo.org |
1 | cardoe 12/07/10 04:14:43 |
2 | |
3 | Added: mythfrontend.conf xinitrc-r1 mythfrontend.wrapper |
4 | Log: |
5 | Add a Mythbuntu like wrapper for mythfrontend so users can configure the autostart arguments easily as well as using mythwelcome as a wrapper. |
6 | |
7 | (Portage version: 2.1.10.65/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 media-tv/mythtv/files/mythfrontend.conf |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/files/mythfrontend.conf?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/files/mythfrontend.conf?rev=1.1&content-type=text/plain |
14 | |
15 | Index: mythfrontend.conf |
16 | =================================================================== |
17 | # Copyright 1999-2012 Gentoo Foundation |
18 | # Distributed under the terms of the GNU General Public License v2 |
19 | # $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/files/mythfrontend.conf,v 1.1 2012/07/10 04:14:43 cardoe Exp $ |
20 | |
21 | # Should 'mythfrontend' really execute mythwelcome instead? |
22 | # Default: false |
23 | MYTHWELCOME=false |
24 | |
25 | # Options to pass to mythfrontend or mythwelcome based on the above setting |
26 | # Note: If you have mythwelcome enabled, it does not pass arguments to |
27 | # mythfrontend. You must configure this inside mythwelcome |
28 | # Default: --syslog local7 |
29 | MYTHFRONTEND_OPTS="--syslog local7" |
30 | |
31 | |
32 | |
33 | 1.1 media-tv/mythtv/files/xinitrc-r1 |
34 | |
35 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/files/xinitrc-r1?rev=1.1&view=markup |
36 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/files/xinitrc-r1?rev=1.1&content-type=text/plain |
37 | |
38 | Index: xinitrc-r1 |
39 | =================================================================== |
40 | # .xinitrc |
41 | [ -x /usr/bin/nvidia-settings ] && /usr/bin/nvidia-settings -l |
42 | /usr/bin/xset s noblank |
43 | /usr/bin/xset s off |
44 | /usr/bin/xset -dpms |
45 | /usr/bin/evilwm & |
46 | # Configure arguments via /etc/conf.d/mythfrontend |
47 | exec /usr/bin/mythfrontend |
48 | |
49 | |
50 | |
51 | 1.1 media-tv/mythtv/files/mythfrontend.wrapper |
52 | |
53 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/files/mythfrontend.wrapper?rev=1.1&view=markup |
54 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/mythtv/files/mythfrontend.wrapper?rev=1.1&content-type=text/plain |
55 | |
56 | Index: mythfrontend.wrapper |
57 | =================================================================== |
58 | #!/bin/sh |
59 | # Based on Mythbuntu's script |
60 | |
61 | # Check if the frontend is already running, |
62 | # if it is bring it to the foreground. |
63 | # This is to prevent multiple frontends from running |
64 | /usr/bin/pgrep mythfrontend.real 2>&1 > /dev/null && \ |
65 | /usr/bin/wmctrl -a "MythTV Frontend" 2> /dev/null && \ |
66 | exit 0 |
67 | |
68 | # Check if you're part of the video group |
69 | if [ -n "$(groups | grep -v video)" ]; then |
70 | echo "'$USER' is not part of the 'video' group." >&2 |
71 | echo "For best results add '$USER' to the 'video' group." >&2 |
72 | fi |
73 | |
74 | if [ -e /etc/conf.d/mythfrontend ]; then |
75 | . /etc/conf.d/mythfrontend |
76 | fi |
77 | |
78 | if [ "x${MYTHWELCOME}" = "xtrue" ]; then |
79 | exec /usr/bin/mythwelcome ${MYTHFRONTEND_OPTS} |
80 | RET=$? |
81 | else |
82 | exec /usr/bin/mythfrontend.real ${MYTHFRONTEND_OPTS} |
83 | RET=$? |
84 | fi |
85 | |
86 | exit ${RET} |