xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Opened 10 months ago

Last modified 5 weeks ago

#2753 assigned enhancement

guess content-type from parent pid

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: major Milestone: 5.0
Component: server Version: 3.0.x
Keywords: Cc:

Description

If we don't find a match for the window using the regular content-type guessing code (#1950), use the parent pid.
Useful for applications like steam: all children processes should use video by default.

See Given a child PID how can you get the parent PID and Find parent pid given a pid: requires libproc-dev.

#include <proc/readproc.h>
void printppid(pid_t pid) {
    proc_t process_info;
    get_proc_stats(pid, &process_info);
    printf("Parent of pid=%d is pid=%d\n", pid, process_info.ppid);
}

Change History (2)

comment:1 Changed 8 months ago by Antoine Martin

Milestone: 4.15.0
Status: newassigned

comment:2 Changed 5 weeks ago by migration script

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2753

Note: See TracTickets for help on using tickets.