All of lore.kernel.org
 help / color / mirror / Atom feed
* [morty/rocko/master][PATCH] maxrix-gui:Update the "execute-command" patch to support win_type
@ 2018-02-28 18:20 Eric Ruei
  2018-02-28 18:23 ` Denys Dmytriyenko
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Ruei @ 2018-02-28 18:20 UTC (permalink / raw)
  To: meta-arago

An optional variable win_type can be specified at app.desktop to
force matrix-gui to exit Weston prior to application launching


Signed-off-by: Eric Ruei <e-ruei1@ti.com>
---
 ...mmand-workaround-for-GUI-apps-with-weston.patch | 64 +++++++++++++++-------
 .../recipes-core/matrix/matrix-gui_2.0.bb          |  2 +-
 2 files changed, 44 insertions(+), 22 deletions(-)

diff --git a/meta-arago-extras/recipes-core/matrix/matrix-gui/0001-execute_command-workaround-for-GUI-apps-with-weston.patch b/meta-arago-extras/recipes-core/matrix/matrix-gui/0001-execute_command-workaround-for-GUI-apps-with-weston.patch
index 4dbdbab..5a85935 100644
--- a/meta-arago-extras/recipes-core/matrix/matrix-gui/0001-execute_command-workaround-for-GUI-apps-with-weston.patch
+++ b/meta-arago-extras/recipes-core/matrix/matrix-gui/0001-execute_command-workaround-for-GUI-apps-with-weston.patch
@@ -1,27 +1,27 @@
-From 9169773b546cfea3c829b3c5e79c68c7979ceea4 Mon Sep 17 00:00:00 2001
-From: Jacob Stiffler <j-stiffler@ti.com>
-Date: Sat, 13 Aug 2016 13:27:30 -0400
+From 9647ddc10dc9424b1433db2f8184268523d829da Mon Sep 17 00:00:00 2001
+From: Eric Ruei <e-ruei1@ti.com>
+Date: Wed, 28 Feb 2018 12:20:32 -0500
 Subject: [PATCH] execute_command: workaround for GUI apps with weston
 
 * For all GUI apps, shutdown matrix before launching
   - This is needed since matrix is launched fullscreen, and another
     GUI app may get hidden behind matrix with no way to recover.
-* For MM and 3D apps, shutdown weston before launching
-  - These apps use KMS sink, which collides with weston.
+* For MM and 3D and null window apps, shutdown weston before launching
+  - These apps use KMS sink or DRM, which collides with weston
 
 Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
 Signed-off-by: Eric Ruei <e-ruei1@ti.com>
 ---
- execute_command.sh |   34 +++++++++++++++++++++++++++++++++-
- generate.php       |    2 ++
- run_script.php     |    2 +-
- 3 files changed, 36 insertions(+), 2 deletions(-)
+ execute_command.sh | 39 ++++++++++++++++++++++++++++++++++++++-
+ generate.php       |  4 ++++
+ run_script.php     | 10 +++++++++-
+ 3 files changed, 51 insertions(+), 2 deletions(-)
 
 diff --git a/execute_command.sh b/execute_command.sh
-index 2be1278..b8d98a5 100755
+index 325dcb9..180e71f 100755
 --- a/execute_command.sh
 +++ b/execute_command.sh
-@@ -59,7 +59,17 @@ do
+@@ -63,7 +63,22 @@ do
  	outputfilename=$item 
    fi
  
@@ -36,11 +36,16 @@ index 2be1278..b8d98a5 100755
 +    category=$item
 +  fi
 +
-+  if [ $i -gt 3 ]
++  if [ $i -eq 4 ]
++  then
++    win_type=$item
++  fi
++
++  if [ $i -gt 4 ]
    then
      touch "lock/"$item
  
-@@ -68,10 +78,32 @@ do
+@@ -72,10 +87,32 @@ do
  
  done
  
@@ -48,7 +53,7 @@ index 2be1278..b8d98a5 100755
 +then
 +  /etc/init.d/matrix-gui-2.0 stop
 +
-+  if [ $category == 3d -o $category == multimedia -o $category == touch ]
++  if [ $category == 3d -o $category == multimedia -o $category == touch -o $win_type == null ]
 +  then
 +    /etc/init.d/weston stop
 +    sleep 1
@@ -61,7 +66,7 @@ index 2be1278..b8d98a5 100755
  
 +if [ $program_type == gui ]
 +then
-+  if [ $category == 3d -o $category == multimedia -o $category == touch ]
++  if [ $category == 3d -o $category == multimedia -o $category == touch -o $win_type == null ]
 +  then
 +    /etc/init.d/weston start
 +    sleep 1
@@ -74,31 +79,48 @@ index 2be1278..b8d98a5 100755
  echo "_?!!MATRIX_SCRIPT_COMPLETED!!?_" >> "tmp/"$outputfilename
  
 diff --git a/generate.php b/generate.php
-index 10cfed4..7c08282 100644
+index 10cfed4..cd88dd3 100644
 --- a/generate.php
 +++ b/generate.php
-@@ -105,6 +105,8 @@ for($x = 0;$x<count($contents)&&strlen($contents[$x])>0;$x++)
+@@ -105,6 +105,10 @@ for($x = 0;$x<count($contents)&&strlen($contents[$x])>0;$x++)
  		$top["Description_Link"] = get_contents("X-MATRIX-Description",$dotdesktop);
  
  		$top["Lock"] = get_contents("X-MATRIX-LOCK",$dotdesktop);
 +
 +		$top["Category"] = get_contents("Categories",$dotdesktop);
++
++		$top["WinType"] = get_contents("WinType",$dotdesktop);
  	} 
  
  	if($category == -1)
 diff --git a/run_script.php b/run_script.php
-index 9dd7a10..1481b17 100644
+index 9dd7a10..d34a286 100644
 --- a/run_script.php
 +++ b/run_script.php
-@@ -91,7 +91,7 @@ if($currently_locked==false)
+@@ -55,6 +55,7 @@ $submenu = isset($_GET["submenu"]) == true ? $_GET["submenu"] : "main_menu" ;
+ $found_app = get_application($var,$submenu,$_GET["app"]);
+ 
+ $lock_list = $found_app["Lock"];
++$win_type = $found_app["WinType"];
+ 
+ //Verify that there is a lock specified for this application
+ if($lock_list != -1 )
+@@ -91,7 +92,14 @@ if($currently_locked==false)
  	$random_string = strval(rand());
  	$random_string .= strval(rand());
  
 -	$script_command = "./execute_command.sh \"".addslashes($script_link). "\" ".$random_string.".txt ".$lock_list;
-+	$script_command = "./execute_command.sh \"".addslashes($script_link). "\" ".$random_string.".txt \"".$found_app["ProgramType"]."\" \"".$found_app["Category"]."\" ".$lock_list;
++        if($win_type != -1 )
++	{
++		$script_command = "./execute_command.sh \"".addslashes($script_link). "\" ".$random_string.".txt \"".$found_app["ProgramType"]."\" \"".$found_app["Category"]."\" \"".$found_app["WinType"]."\"  ".$lock_list;
++	}
++	else
++	{
++		$script_command = "./execute_command.sh \"".addslashes($script_link). "\" ".$random_string.".txt \"".$found_app["ProgramType"]."\" \"".$found_app["Category"]."\"  \"wayland\" ".$lock_list;
++	}
  
  	$last_line = system($script_command." > /dev/null 2>/dev/null & ", $retval);
  }
 -- 
-1.7.9.5
+1.9.1
 
diff --git a/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb b/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb
index 2bd0d89..21f5b18 100644
--- a/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb
+++ b/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=a886c9ef769b2d8271115d2502512e5d"
 
 SECTION = "multimedia"
 
-PR = "r33"
+PR = "r34"
 
 INITSCRIPT_NAME = "matrix-gui-2.0"
 INITSCRIPT_PARAMS = "defaults 97"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [morty/rocko/master][PATCH] maxrix-gui:Update the "execute-command" patch to support win_type
  2018-02-28 18:20 [morty/rocko/master][PATCH] maxrix-gui:Update the "execute-command" patch to support win_type Eric Ruei
@ 2018-02-28 18:23 ` Denys Dmytriyenko
  2018-02-28 18:56   ` Ruei, Eric
  0 siblings, 1 reply; 3+ messages in thread
From: Denys Dmytriyenko @ 2018-02-28 18:23 UTC (permalink / raw)
  To: Eric Ruei; +Cc: meta-arago

Thanks, this sounds good.

One question I have is - can we push these changes to matrix gui repo instead 
of carrying them here in meta-arago metadata?

-- 
Denys


On Wed, Feb 28, 2018 at 01:20:39PM -0500, Eric Ruei wrote:
> An optional variable win_type can be specified at app.desktop to
> force matrix-gui to exit Weston prior to application launching
> 
> 
> Signed-off-by: Eric Ruei <e-ruei1@ti.com>
> ---
>  ...mmand-workaround-for-GUI-apps-with-weston.patch | 64 +++++++++++++++-------
>  .../recipes-core/matrix/matrix-gui_2.0.bb          |  2 +-
>  2 files changed, 44 insertions(+), 22 deletions(-)
> 
> diff --git a/meta-arago-extras/recipes-core/matrix/matrix-gui/0001-execute_command-workaround-for-GUI-apps-with-weston.patch b/meta-arago-extras/recipes-core/matrix/matrix-gui/0001-execute_command-workaround-for-GUI-apps-with-weston.patch
> index 4dbdbab..5a85935 100644
> --- a/meta-arago-extras/recipes-core/matrix/matrix-gui/0001-execute_command-workaround-for-GUI-apps-with-weston.patch
> +++ b/meta-arago-extras/recipes-core/matrix/matrix-gui/0001-execute_command-workaround-for-GUI-apps-with-weston.patch
> @@ -1,27 +1,27 @@
> -From 9169773b546cfea3c829b3c5e79c68c7979ceea4 Mon Sep 17 00:00:00 2001
> -From: Jacob Stiffler <j-stiffler@ti.com>
> -Date: Sat, 13 Aug 2016 13:27:30 -0400
> +From 9647ddc10dc9424b1433db2f8184268523d829da Mon Sep 17 00:00:00 2001
> +From: Eric Ruei <e-ruei1@ti.com>
> +Date: Wed, 28 Feb 2018 12:20:32 -0500
>  Subject: [PATCH] execute_command: workaround for GUI apps with weston
>  
>  * For all GUI apps, shutdown matrix before launching
>    - This is needed since matrix is launched fullscreen, and another
>      GUI app may get hidden behind matrix with no way to recover.
> -* For MM and 3D apps, shutdown weston before launching
> -  - These apps use KMS sink, which collides with weston.
> +* For MM and 3D and null window apps, shutdown weston before launching
> +  - These apps use KMS sink or DRM, which collides with weston
>  
>  Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
>  Signed-off-by: Eric Ruei <e-ruei1@ti.com>
>  ---
> - execute_command.sh |   34 +++++++++++++++++++++++++++++++++-
> - generate.php       |    2 ++
> - run_script.php     |    2 +-
> - 3 files changed, 36 insertions(+), 2 deletions(-)
> + execute_command.sh | 39 ++++++++++++++++++++++++++++++++++++++-
> + generate.php       |  4 ++++
> + run_script.php     | 10 +++++++++-
> + 3 files changed, 51 insertions(+), 2 deletions(-)
>  
>  diff --git a/execute_command.sh b/execute_command.sh
> -index 2be1278..b8d98a5 100755
> +index 325dcb9..180e71f 100755
>  --- a/execute_command.sh
>  +++ b/execute_command.sh
> -@@ -59,7 +59,17 @@ do
> +@@ -63,7 +63,22 @@ do
>   	outputfilename=$item 
>     fi
>   
> @@ -36,11 +36,16 @@ index 2be1278..b8d98a5 100755
>  +    category=$item
>  +  fi
>  +
> -+  if [ $i -gt 3 ]
> ++  if [ $i -eq 4 ]
> ++  then
> ++    win_type=$item
> ++  fi
> ++
> ++  if [ $i -gt 4 ]
>     then
>       touch "lock/"$item
>   
> -@@ -68,10 +78,32 @@ do
> +@@ -72,10 +87,32 @@ do
>   
>   done
>   
> @@ -48,7 +53,7 @@ index 2be1278..b8d98a5 100755
>  +then
>  +  /etc/init.d/matrix-gui-2.0 stop
>  +
> -+  if [ $category == 3d -o $category == multimedia -o $category == touch ]
> ++  if [ $category == 3d -o $category == multimedia -o $category == touch -o $win_type == null ]
>  +  then
>  +    /etc/init.d/weston stop
>  +    sleep 1
> @@ -61,7 +66,7 @@ index 2be1278..b8d98a5 100755
>   
>  +if [ $program_type == gui ]
>  +then
> -+  if [ $category == 3d -o $category == multimedia -o $category == touch ]
> ++  if [ $category == 3d -o $category == multimedia -o $category == touch -o $win_type == null ]
>  +  then
>  +    /etc/init.d/weston start
>  +    sleep 1
> @@ -74,31 +79,48 @@ index 2be1278..b8d98a5 100755
>   echo "_?!!MATRIX_SCRIPT_COMPLETED!!?_" >> "tmp/"$outputfilename
>   
>  diff --git a/generate.php b/generate.php
> -index 10cfed4..7c08282 100644
> +index 10cfed4..cd88dd3 100644
>  --- a/generate.php
>  +++ b/generate.php
> -@@ -105,6 +105,8 @@ for($x = 0;$x<count($contents)&&strlen($contents[$x])>0;$x++)
> +@@ -105,6 +105,10 @@ for($x = 0;$x<count($contents)&&strlen($contents[$x])>0;$x++)
>   		$top["Description_Link"] = get_contents("X-MATRIX-Description",$dotdesktop);
>   
>   		$top["Lock"] = get_contents("X-MATRIX-LOCK",$dotdesktop);
>  +
>  +		$top["Category"] = get_contents("Categories",$dotdesktop);
> ++
> ++		$top["WinType"] = get_contents("WinType",$dotdesktop);
>   	} 
>   
>   	if($category == -1)
>  diff --git a/run_script.php b/run_script.php
> -index 9dd7a10..1481b17 100644
> +index 9dd7a10..d34a286 100644
>  --- a/run_script.php
>  +++ b/run_script.php
> -@@ -91,7 +91,7 @@ if($currently_locked==false)
> +@@ -55,6 +55,7 @@ $submenu = isset($_GET["submenu"]) == true ? $_GET["submenu"] : "main_menu" ;
> + $found_app = get_application($var,$submenu,$_GET["app"]);
> + 
> + $lock_list = $found_app["Lock"];
> ++$win_type = $found_app["WinType"];
> + 
> + //Verify that there is a lock specified for this application
> + if($lock_list != -1 )
> +@@ -91,7 +92,14 @@ if($currently_locked==false)
>   	$random_string = strval(rand());
>   	$random_string .= strval(rand());
>   
>  -	$script_command = "./execute_command.sh \"".addslashes($script_link). "\" ".$random_string.".txt ".$lock_list;
> -+	$script_command = "./execute_command.sh \"".addslashes($script_link). "\" ".$random_string.".txt \"".$found_app["ProgramType"]."\" \"".$found_app["Category"]."\" ".$lock_list;
> ++        if($win_type != -1 )
> ++	{
> ++		$script_command = "./execute_command.sh \"".addslashes($script_link). "\" ".$random_string.".txt \"".$found_app["ProgramType"]."\" \"".$found_app["Category"]."\" \"".$found_app["WinType"]."\"  ".$lock_list;
> ++	}
> ++	else
> ++	{
> ++		$script_command = "./execute_command.sh \"".addslashes($script_link). "\" ".$random_string.".txt \"".$found_app["ProgramType"]."\" \"".$found_app["Category"]."\"  \"wayland\" ".$lock_list;
> ++	}
>   
>   	$last_line = system($script_command." > /dev/null 2>/dev/null & ", $retval);
>   }
>  -- 
> -1.7.9.5
> +1.9.1
>  
> diff --git a/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb b/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb
> index 2bd0d89..21f5b18 100644
> --- a/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb
> +++ b/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb
> @@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=a886c9ef769b2d8271115d2502512e5d"
>  
>  SECTION = "multimedia"
>  
> -PR = "r33"
> +PR = "r34"
>  
>  INITSCRIPT_NAME = "matrix-gui-2.0"
>  INITSCRIPT_PARAMS = "defaults 97"
> -- 
> 1.9.1
> 
> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [morty/rocko/master][PATCH] maxrix-gui:Update the "execute-command" patch to support win_type
  2018-02-28 18:23 ` Denys Dmytriyenko
@ 2018-02-28 18:56   ` Ruei, Eric
  0 siblings, 0 replies; 3+ messages in thread
From: Ruei, Eric @ 2018-02-28 18:56 UTC (permalink / raw)
  To: Dmytriyenko, Denys; +Cc: meta-arago@arago-project.org

Hi, Denys:

I do not know the history.
The only advantage that I can see is that we shall apply this patch only when Weston is built.

Jake: do you know why we do it this way?

Best regards,

Eric


-----Original Message-----
From: Dmytriyenko, Denys 
Sent: Wednesday, February 28, 2018 1:24 PM
To: Ruei, Eric
Cc: meta-arago@arago-project.org
Subject: Re: [meta-arago] [morty/rocko/master][PATCH] maxrix-gui:Update the "execute-command" patch to support win_type

Thanks, this sounds good.

One question I have is - can we push these changes to matrix gui repo instead of carrying them here in meta-arago metadata?

--
Denys


On Wed, Feb 28, 2018 at 01:20:39PM -0500, Eric Ruei wrote:
> An optional variable win_type can be specified at app.desktop to
> force matrix-gui to exit Weston prior to application launching
> 
> 
> Signed-off-by: Eric Ruei <e-ruei1@ti.com>
> ---
>  ...mmand-workaround-for-GUI-apps-with-weston.patch | 64 +++++++++++++++-------
>  .../recipes-core/matrix/matrix-gui_2.0.bb          |  2 +-
>  2 files changed, 44 insertions(+), 22 deletions(-)
> 
> diff --git a/meta-arago-extras/recipes-core/matrix/matrix-gui/0001-execute_command-workaround-for-GUI-apps-with-weston.patch b/meta-arago-extras/recipes-core/matrix/matrix-gui/0001-execute_command-workaround-for-GUI-apps-with-weston.patch
> index 4dbdbab..5a85935 100644
> --- a/meta-arago-extras/recipes-core/matrix/matrix-gui/0001-execute_command-workaround-for-GUI-apps-with-weston.patch
> +++ b/meta-arago-extras/recipes-core/matrix/matrix-gui/0001-execute_command-workaround-for-GUI-apps-with-weston.patch
> @@ -1,27 +1,27 @@
> -From 9169773b546cfea3c829b3c5e79c68c7979ceea4 Mon Sep 17 00:00:00 2001
> -From: Jacob Stiffler <j-stiffler@ti.com>
> -Date: Sat, 13 Aug 2016 13:27:30 -0400
> +From 9647ddc10dc9424b1433db2f8184268523d829da Mon Sep 17 00:00:00 2001
> +From: Eric Ruei <e-ruei1@ti.com>
> +Date: Wed, 28 Feb 2018 12:20:32 -0500
>  Subject: [PATCH] execute_command: workaround for GUI apps with weston
>  
>  * For all GUI apps, shutdown matrix before launching
>    - This is needed since matrix is launched fullscreen, and another
>      GUI app may get hidden behind matrix with no way to recover.
> -* For MM and 3D apps, shutdown weston before launching
> -  - These apps use KMS sink, which collides with weston.
> +* For MM and 3D and null window apps, shutdown weston before launching
> +  - These apps use KMS sink or DRM, which collides with weston
>  
>  Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
>  Signed-off-by: Eric Ruei <e-ruei1@ti.com>
>  ---
> - execute_command.sh |   34 +++++++++++++++++++++++++++++++++-
> - generate.php       |    2 ++
> - run_script.php     |    2 +-
> - 3 files changed, 36 insertions(+), 2 deletions(-)
> + execute_command.sh | 39 ++++++++++++++++++++++++++++++++++++++-
> + generate.php       |  4 ++++
> + run_script.php     | 10 +++++++++-
> + 3 files changed, 51 insertions(+), 2 deletions(-)
>  
>  diff --git a/execute_command.sh b/execute_command.sh
> -index 2be1278..b8d98a5 100755
> +index 325dcb9..180e71f 100755
>  --- a/execute_command.sh
>  +++ b/execute_command.sh
> -@@ -59,7 +59,17 @@ do
> +@@ -63,7 +63,22 @@ do
>   	outputfilename=$item 
>     fi
>   
> @@ -36,11 +36,16 @@ index 2be1278..b8d98a5 100755
>  +    category=$item
>  +  fi
>  +
> -+  if [ $i -gt 3 ]
> ++  if [ $i -eq 4 ]
> ++  then
> ++    win_type=$item
> ++  fi
> ++
> ++  if [ $i -gt 4 ]
>     then
>       touch "lock/"$item
>   
> -@@ -68,10 +78,32 @@ do
> +@@ -72,10 +87,32 @@ do
>   
>   done
>   
> @@ -48,7 +53,7 @@ index 2be1278..b8d98a5 100755
>  +then
>  +  /etc/init.d/matrix-gui-2.0 stop
>  +
> -+  if [ $category == 3d -o $category == multimedia -o $category == touch ]
> ++  if [ $category == 3d -o $category == multimedia -o $category == touch -o $win_type == null ]
>  +  then
>  +    /etc/init.d/weston stop
>  +    sleep 1
> @@ -61,7 +66,7 @@ index 2be1278..b8d98a5 100755
>   
>  +if [ $program_type == gui ]
>  +then
> -+  if [ $category == 3d -o $category == multimedia -o $category == touch ]
> ++  if [ $category == 3d -o $category == multimedia -o $category == touch -o $win_type == null ]
>  +  then
>  +    /etc/init.d/weston start
>  +    sleep 1
> @@ -74,31 +79,48 @@ index 2be1278..b8d98a5 100755
>   echo "_?!!MATRIX_SCRIPT_COMPLETED!!?_" >> "tmp/"$outputfilename
>   
>  diff --git a/generate.php b/generate.php
> -index 10cfed4..7c08282 100644
> +index 10cfed4..cd88dd3 100644
>  --- a/generate.php
>  +++ b/generate.php
> -@@ -105,6 +105,8 @@ for($x = 0;$x<count($contents)&&strlen($contents[$x])>0;$x++)
> +@@ -105,6 +105,10 @@ for($x = 0;$x<count($contents)&&strlen($contents[$x])>0;$x++)
>   		$top["Description_Link"] = get_contents("X-MATRIX-Description",$dotdesktop);
>   
>   		$top["Lock"] = get_contents("X-MATRIX-LOCK",$dotdesktop);
>  +
>  +		$top["Category"] = get_contents("Categories",$dotdesktop);
> ++
> ++		$top["WinType"] = get_contents("WinType",$dotdesktop);
>   	} 
>   
>   	if($category == -1)
>  diff --git a/run_script.php b/run_script.php
> -index 9dd7a10..1481b17 100644
> +index 9dd7a10..d34a286 100644
>  --- a/run_script.php
>  +++ b/run_script.php
> -@@ -91,7 +91,7 @@ if($currently_locked==false)
> +@@ -55,6 +55,7 @@ $submenu = isset($_GET["submenu"]) == true ? $_GET["submenu"] : "main_menu" ;
> + $found_app = get_application($var,$submenu,$_GET["app"]);
> + 
> + $lock_list = $found_app["Lock"];
> ++$win_type = $found_app["WinType"];
> + 
> + //Verify that there is a lock specified for this application
> + if($lock_list != -1 )
> +@@ -91,7 +92,14 @@ if($currently_locked==false)
>   	$random_string = strval(rand());
>   	$random_string .= strval(rand());
>   
>  -	$script_command = "./execute_command.sh \"".addslashes($script_link). "\" ".$random_string.".txt ".$lock_list;
> -+	$script_command = "./execute_command.sh \"".addslashes($script_link). "\" ".$random_string.".txt \"".$found_app["ProgramType"]."\" \"".$found_app["Category"]."\" ".$lock_list;
> ++        if($win_type != -1 )
> ++	{
> ++		$script_command = "./execute_command.sh \"".addslashes($script_link). "\" ".$random_string.".txt \"".$found_app["ProgramType"]."\" \"".$found_app["Category"]."\" \"".$found_app["WinType"]."\"  ".$lock_list;
> ++	}
> ++	else
> ++	{
> ++		$script_command = "./execute_command.sh \"".addslashes($script_link). "\" ".$random_string.".txt \"".$found_app["ProgramType"]."\" \"".$found_app["Category"]."\"  \"wayland\" ".$lock_list;
> ++	}
>   
>   	$last_line = system($script_command." > /dev/null 2>/dev/null & ", $retval);
>   }
>  -- 
> -1.7.9.5
> +1.9.1
>  
> diff --git a/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb b/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb
> index 2bd0d89..21f5b18 100644
> --- a/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb
> +++ b/meta-arago-extras/recipes-core/matrix/matrix-gui_2.0.bb
> @@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=a886c9ef769b2d8271115d2502512e5d"
>  
>  SECTION = "multimedia"
>  
> -PR = "r33"
> +PR = "r34"
>  
>  INITSCRIPT_NAME = "matrix-gui-2.0"
>  INITSCRIPT_PARAMS = "defaults 97"
> -- 
> 1.9.1
> 
> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-02-28 18:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-28 18:20 [morty/rocko/master][PATCH] maxrix-gui:Update the "execute-command" patch to support win_type Eric Ruei
2018-02-28 18:23 ` Denys Dmytriyenko
2018-02-28 18:56   ` Ruei, Eric

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.