chore(x11/xfce4-session): fix Failed to execute child process “/usr/bin/pm-is-supported”
This commit is contained in:
parent
f9408bba69
commit
25c8326d68
|
@ -4,6 +4,7 @@ TERMUX_PKG_LICENSE="GPL-2.0"
|
|||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
_MAJOR_VERSION=4.18
|
||||
TERMUX_PKG_VERSION=${_MAJOR_VERSION}.3
|
||||
TERMUX_PKG_REVISION=1
|
||||
TERMUX_PKG_SRCURL=https://archive.xfce.org/src/xfce/xfce4-session/${_MAJOR_VERSION}/xfce4-session-${TERMUX_PKG_VERSION}.tar.bz2
|
||||
TERMUX_PKG_SHA256=382f93e096ec6493098719cab8cc31b93ad9bb469c0715c0c5117d75fe7394ec
|
||||
TERMUX_PKG_DEPENDS="atk, gdk-pixbuf, glib, gtk3, libcairo, libice, libsm, libwnck, libx11, libxfce4ui, libxfce4util, pango, xfconf, xorg-iceauth, xorg-xrdb"
|
||||
|
|
|
@ -1,11 +1,31 @@
|
|||
--- xfce4-session-4.12.1/xfce4-session/xfsm-shutdown-fallback.c 2014-12-07 13:18:40.000000000 +0530
|
||||
+++ xfce4-session/xfce4-session/xfsm-shutdown-fallback.c 2019-02-04 11:10:01.104865553 +0530
|
||||
@@ -135,7 +135,7 @@
|
||||
|
||||
|
||||
|
||||
-#ifdef BACKEND_TYPE_LINUX
|
||||
+#ifdef BACKEND_TYPE_LINUX && !defined(__ANDROID__) /* Dont support in ANDROID */
|
||||
@@ -172,27 +172,7 @@
|
||||
static gboolean
|
||||
linux_supports_sleep_state (const gchar *state)
|
||||
{
|
||||
- gboolean ret = FALSE;
|
||||
- gchar *command;
|
||||
- GError *error = NULL;
|
||||
- gint exit_status;
|
||||
-
|
||||
- /* run script from pm-utils */
|
||||
- command = g_strdup_printf ("/usr/bin/pm-is-supported --%s", state);
|
||||
-
|
||||
- ret = g_spawn_command_line_sync (command, NULL, NULL, &exit_status, &error);
|
||||
- if (!ret)
|
||||
- {
|
||||
- g_warning ("failed to run script: %s", error->message);
|
||||
- g_error_free (error);
|
||||
- goto out;
|
||||
- }
|
||||
- ret = (WIFEXITED(exit_status) && (WEXITSTATUS(exit_status) == EXIT_SUCCESS));
|
||||
-
|
||||
-out:
|
||||
- g_free (command);
|
||||
-
|
||||
- return ret;
|
||||
+ return FALSE;
|
||||
}
|
||||
#endif /* BACKEND_TYPE_LINUX */
|
||||
|
||||
|
|
Loading…
Reference in New Issue