We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de2c259 commit b29e87fCopy full SHA for b29e87f
packages/desktop_drop/linux/desktop_drop_plugin.cc
@@ -2,6 +2,7 @@
2
3
#include <flutter_linux/flutter_linux.h>
4
#include <gtk/gtk.h>
5
+#include <stdlib.h>
6
#include <sys/utsname.h>
7
8
#define DESKTOP_DROP_PLUGIN(obj) \
@@ -66,7 +67,7 @@ static void desktop_drop_plugin_class_init(DesktopDropPluginClass *klass) {
66
67
}
68
69
static void desktop_drop_plugin_init(DesktopDropPlugin *self) {
- const char * desktopEnv = std::getenv("XDG_CURRENT_DESKTOP");
70
+ const char * desktopEnv = getenv("XDG_CURRENT_DESKTOP");
71
if (desktopEnv) {
72
const char * lowercaseDesktopEnv = g_ascii_strdown(desktopEnv, -1);
73
0 commit comments