mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-18 15:35:55 +01:00
More precise information on unknown systems
Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
This commit is contained in:
committed by
Carlos R. Mafra
parent
24d7457ec6
commit
c5f5e0b9c0
@@ -105,7 +105,6 @@ case "${host}" in
|
|||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
WM_OSDEP="stub"
|
WM_OSDEP="stub"
|
||||||
CFLAGS="-DSTUB_HINT=\\\"${host}\\\""
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
AC_SUBST(WM_OSDEP)
|
AC_SUBST(WM_OSDEP)
|
||||||
|
|||||||
@@ -1,24 +1,29 @@
|
|||||||
|
|
||||||
|
#include <sys/utsname.h>
|
||||||
|
|
||||||
#include <WINGs/WUtil.h>
|
#include <WINGs/WUtil.h>
|
||||||
|
|
||||||
#include "wconfig.h"
|
#include "wconfig.h"
|
||||||
|
|
||||||
#ifndef STUB_HINT
|
|
||||||
#define STUB_HINT "(unknown)"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
Bool GetCommandForPid(int pid, char ***argv, int *argc)
|
Bool GetCommandForPid(int pid, char ***argv, int *argc)
|
||||||
{
|
{
|
||||||
*argv = NULL;
|
|
||||||
*argc = 0;
|
|
||||||
static int notified = 0;
|
static int notified = 0;
|
||||||
|
|
||||||
if (!notified) {
|
if (!notified) {
|
||||||
wwarning(_("%s is not implemented on this platform; "
|
struct utsname un;
|
||||||
"tell wmaker-dev@lists.windowmaker.info you are running \"%s\""),
|
|
||||||
__FUNCTION__, STUB_HINT);
|
if (uname(&un) != -1) {
|
||||||
notified = 1;
|
wwarning(_("%s is not implemented on this platform; "
|
||||||
|
"tell wmaker-dev@windowmaker.org you are running "
|
||||||
|
"%s release %s version %s"), __FUNCTION__,
|
||||||
|
un.sysname, un.release, un.version);
|
||||||
|
notified = 1;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*argv = NULL;
|
||||||
|
*argc = 0;
|
||||||
|
|
||||||
return False;
|
return False;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user