Files
SDL/src/core/linux
Pino Toscano 1a48f897f2 ime: fcitx: use SDL_GetExeName() in GetAppName()
Use the existing SDL_GetExeName(), available for all the UNIX
platforms, in the internal GetAppName(); this has few advantanges:
- SDL_GetExeName() (and SDL_GetAppID() that builds on top of it) are
  used in various places already; since it caches the executable name,
  this may remove one extra read of the application name
- SDL_GetExeName() has a non-dummy implementation in more OSes than
  GetAppName(), thus providing a small improvement for this IME

As drive-by change: since SDL_GetExeName() provides a constant string,
there is no more need to allocate a new string in GetAppName(), which
is used as constant string anyway. Hence, return a constant string in
GetAppName() too.

(cherry picked from commit 248bcf6b29)
2025-08-07 13:58:27 -07:00
..
2025-01-01 07:45:52 -08:00
2025-01-01 07:45:52 -08:00
2025-01-01 07:45:52 -08:00
2025-01-01 07:45:52 -08:00
2025-01-01 07:45:52 -08:00
2025-01-01 07:45:52 -08:00
2025-01-01 07:45:52 -08:00
2025-01-01 07:45:52 -08:00
2025-01-01 07:45:52 -08:00
2025-01-01 07:45:52 -08:00
2025-01-01 07:45:52 -08:00
2025-01-01 07:45:52 -08:00
2025-01-01 07:45:52 -08:00
2025-01-01 07:45:52 -08:00
2025-01-01 07:45:52 -08:00