mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:27:45 +00:00
FileManager: Use Core::Process::set_name()
This commit is contained in:
parent
00b897af8f
commit
8297516f89
1 changed files with 3 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
|
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
|
||||||
* Copyright (c) 2021, Sam Atkins <atkinssj@serenityos.org>
|
* Copyright (c) 2021-2023, Sam Atkins <atkinssj@serenityos.org>
|
||||||
* Copyright (c) 2021, Mustafa Quraish <mustafa@cs.toronto.edu>
|
* Copyright (c) 2021, Mustafa Quraish <mustafa@cs.toronto.edu>
|
||||||
* Copyright (c) 2022, the SerenityOS developers.
|
* Copyright (c) 2022, the SerenityOS developers.
|
||||||
*
|
*
|
||||||
|
@ -20,6 +20,7 @@
|
||||||
#include <LibConfig/Listener.h>
|
#include <LibConfig/Listener.h>
|
||||||
#include <LibCore/ArgsParser.h>
|
#include <LibCore/ArgsParser.h>
|
||||||
#include <LibCore/File.h>
|
#include <LibCore/File.h>
|
||||||
|
#include <LibCore/Process.h>
|
||||||
#include <LibCore/StandardPaths.h>
|
#include <LibCore/StandardPaths.h>
|
||||||
#include <LibCore/System.h>
|
#include <LibCore/System.h>
|
||||||
#include <LibDesktop/Launcher.h>
|
#include <LibDesktop/Launcher.h>
|
||||||
|
@ -342,9 +343,7 @@ bool add_launch_handler_actions_to_menu(RefPtr<GUI::Menu>& menu, DirectoryView c
|
||||||
|
|
||||||
ErrorOr<int> run_in_desktop_mode()
|
ErrorOr<int> run_in_desktop_mode()
|
||||||
{
|
{
|
||||||
constexpr char const* process_name = "FileManager (Desktop)";
|
(void)Core::Process::set_name("FileManager (Desktop)"sv, Core::Process::SetThreadName::Yes);
|
||||||
set_process_name(process_name, strlen(process_name));
|
|
||||||
pthread_setname_np(pthread_self(), process_name);
|
|
||||||
|
|
||||||
auto window = TRY(GUI::Window::try_create());
|
auto window = TRY(GUI::Window::try_create());
|
||||||
window->set_title("Desktop Manager");
|
window->set_title("Desktop Manager");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue