KWin
Loading...
Searching...
No Matches
executable_path_proc.cpp
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2021 Tobias C. Berner <tcberner@FreeBSD.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#include "executable_path.h"
8
9#include <QFileInfo>
10
11QString executablePathFromPid(pid_t pid)
12{
13 return QFileInfo(QStringLiteral("/proc/%1/exe").arg(pid)).symLinkTarget();
14}
QString executablePathFromPid(pid_t pid)