ports/x11/xfce4-docklike-plugin/files/patch-src_Wnck.cpp
Quentin Baker 9bee84be4e x11/xfce4-docklike-plugin: Add new port
This is a taskbar panel plugin for xfce4, designed to mimic the look
and functionality of docks and application bars used in Windows and
MacOS. It includes optional features like window previews and launcher
pinning.

WWW: https://gitlab.xfce.org/panel-plugins/xfce4-docklike-plugin

PR:		257692
2021-08-15 19:12:28 +02:00

20 lines
512 B
C++

--- src/Wnck.cpp.orig 2021-08-07 07:23:13 UTC
+++ src/Wnck.cpp
@@ -35,7 +35,7 @@ namespace Wnck
int nbr = read(fd, buffer, 512);
::close(fd);
- char* exe = basename(buffer);
+ char* exe = g_path_get_basename(buffer);
if (strcmp(exe, "python") != 0) // ADDIT graphical interpreters here
return exe;
@@ -44,7 +44,7 @@ namespace Wnck
;
if (it < buffer + nbr)
- return basename(it);
+ return g_path_get_basename(it);
}
// fallback : return window's name