https://bugs.kde.org/show_bug.cgi?id=500261

            Bug ID: 500261
           Summary: KWin::ScreenShotDBusInterface2::checkPermissions()
                    always false on FreeBSD X11
    Classification: Plasma
           Product: kwin
           Version: 6.3.0
          Platform: FreeBSD Ports
                OS: FreeBSD
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kwin-bugs-n...@kde.org
          Reporter: d...@bamus.cz
  Target Milestone: ---

SUMMARY

KWin::ScreenShotDBusInterface2::checkPermissions() always false on FreeBSD X11,
because KWin::fetchRestrictedDBusInterfacesFromPid(pid) uses linux specific
code, which reads from /proc FS

static inline QStringList fetchRestrictedDBusInterfacesFromPid(const uint pid)
{
    const auto executablePath =
QFileInfo(QStringLiteral("/proc/%1/exe").arg(pid)).symLinkTarget();
    return fetchProcessServiceField(executablePath,
s_dbusRestrictedInterfaceName);
}

instead of reusing of portable executablePathFromPid(pid_t) from
src/utils/executable_path.h

STEPS TO REPRODUCE
1.  Launch spectacle

OBSERVED RESULT

It shows

An error occurred while taking a screenshot.
KWin screenshot request failed:
The process is not authorized to take a screenshot
Potentially relevant information:
- Method: CaptureScreen
- Method specific arguments: "DP-0"

EXPECTED RESULT

No errors.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version:  6.3.0
KDE Frameworks Version: 6.10.0
Qt Version:  6.8.2

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to