mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:37:35 +00:00
FileManager: Make the desktop process show as "FileManager (Desktop)"
This commit is contained in:
parent
fcaa45f97b
commit
d777583e28
1 changed files with 5 additions and 0 deletions
|
@ -57,6 +57,7 @@
|
||||||
#include <LibGUI/Widget.h>
|
#include <LibGUI/Widget.h>
|
||||||
#include <LibGUI/Window.h>
|
#include <LibGUI/Window.h>
|
||||||
#include <LibGfx/Palette.h>
|
#include <LibGfx/Palette.h>
|
||||||
|
#include <pthread.h>
|
||||||
#include <serenity.h>
|
#include <serenity.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <spawn.h>
|
#include <spawn.h>
|
||||||
|
@ -147,6 +148,10 @@ private:
|
||||||
|
|
||||||
int run_in_desktop_mode(RefPtr<Core::ConfigFile> config, String initial_location)
|
int run_in_desktop_mode(RefPtr<Core::ConfigFile> config, String initial_location)
|
||||||
{
|
{
|
||||||
|
static constexpr const char* process_name = "FileManager (Desktop)";
|
||||||
|
set_process_name(process_name, strlen(process_name));
|
||||||
|
pthread_setname_np(pthread_self(), process_name);
|
||||||
|
|
||||||
(void)config;
|
(void)config;
|
||||||
(void)initial_location;
|
(void)initial_location;
|
||||||
auto window = GUI::Window::construct();
|
auto window = GUI::Window::construct();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue