Created attachment 206755 [details]
diff file for change to script test of XDG_SESSION_TYPE variable
System: FreeBSD 12.0-RELEASE #1 r350972M
Port Version: 3.2.3
XDG ports installed: xdg-utils-1.1.1
When attempting to execute cpu-x as non-root user, it invokes "cpu-x_polkit" script. In my environment, the "XDG_SESSION_TYPE" variable is undefined. This causes a script error.
Simple static character prefix to script test of that variable prevents the script error. Proposed patch included in attachment (also includes closing script statement "exit").
Looks like current version in the ports, 3.2.4, already has $XDG_SESSION_TYPE properly quoted:
> data/cpu-x_polkit.in: if [ "$XDG_SESSION_TYPE" = "wayland" ] ...