All of lore.kernel.org
 help / color / mirror / Atom feed
From: Otavio Salvador <otavio.salvador@ossystems.com.br>
To: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Cc: "openembedded-core@lists.openembedded.org"
	<openembedded-core@lists.openembedded.org>,
	Sundararaj Prabhu <Prabhu.Sundararaj@freescale.com>
Subject: Re: [PATCH v2] weston-init: Use weston-launch for XWayland
Date: Fri, 11 Dec 2015 10:34:30 -0200	[thread overview]
Message-ID: <CAP9ODKpmpyjZTN6KSKOMebR+_wjNwEAwaFL1gXF9uqkmNCb3Qg@mail.gmail.com> (raw)
In-Reply-To: <566AC1B4.9050508@linux.intel.com>

On Fri, Dec 11, 2015 at 10:29 AM, Alexander Kanavin
<alexander.kanavin@linux.intel.com> wrote:
> On 12/11/2015 01:44 AM, Tom Hochstein wrote:
>
>>          # There are multiple ways to start weston.
>>          if [ "$WAYLAND_DISPLAY" ]; then
>>              echo -e "\aError: Weston is already running."
>>              echo "This script does not support launching Weston nested."
>>              exit 1
>>          else if [ "$DISPLAY" ]; then
>>              echo "Launching Weston with the x11 backend"
>>              openvt -s weston -- --log=/var/log/weston.log $OPTARGS
>>          else
>>              echo "Launching Weston with the DRM backend"
>>              export XDG_CONFIG_HOME=/etc
>>              openvt -v -- weston-launch -- --log=/var/log/weston.log
>> $OPTARGS
>>          fi
>>
>> I still need to test this (and apply the design in systemd), but I wanted
>> your feedback on the approach.
>
>
> I think this looks okay, but you obviously need to test that all three
> scenarios works as expected. Also, systemd unit file language may not
> support this logic (it's not a full programming language), so the above
> snippet probably needs to be separated into a wrapper script.

Agreed; the wrapper might make easier to integrate it on both, with less work.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


      reply	other threads:[~2015-12-11 12:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-01 20:31 [PATCH v2] weston-init: Use weston-launch for XWayland Tom Hochstein
2015-12-01 22:21 ` alexander.kanavin
2015-12-07 13:19   ` Tom Hochstein
2015-12-07 14:13     ` Otavio Salvador
2015-12-07 14:18       ` Alexander Kanavin
2015-12-10 23:44         ` Tom Hochstein
2015-12-11 12:29           ` Alexander Kanavin
2015-12-11 12:34             ` Otavio Salvador [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAP9ODKpmpyjZTN6KSKOMebR+_wjNwEAwaFL1gXF9uqkmNCb3Qg@mail.gmail.com \
    --to=otavio.salvador@ossystems.com.br \
    --cc=Prabhu.Sundararaj@freescale.com \
    --cc=alexander.kanavin@linux.intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.