File indexing completed on 2024-11-10 04:57:22
0001 /* 0002 SPDX-FileCopyrightText: 2021 Tobias C. Berner <tcberner@FreeBSD.org> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #include "executable_path.h" 0008 0009 #include <QFileInfo> 0010 0011 QString executablePathFromPid(pid_t pid) 0012 { 0013 return QFileInfo(QStringLiteral("/proc/%1/exe").arg(pid)).symLinkTarget(); 0014 }