#!/bin/bash

if [ $XDG_SESSION_TYPE = "wayland" ]
then
    xhost +si:localuser:root &>/dev/null
fi

pkexec kshark-record -o ${PWD}/trace.dat
