Date: Wed, 21 Aug 2019 16:22:04 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 240017] sysutils/cpu-x cpu-x_polkit script errors when "XDG_SESSION_TYPE" variable not set Message-ID: <bug-240017-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240017 Bug ID: 240017 Summary: sysutils/cpu-x cpu-x_polkit script errors when "XDG_SESSION_TYPE" variable not set Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: danfe@FreeBSD.org Reporter: radicleparticles@gmail.com Flags: maintainer-feedback?(danfe@FreeBSD.org) Assignee: danfe@FreeBSD.org Created attachment 206755 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D206755&action= =3Dedit diff file for change to script test of XDG_SESSION_TYPE variable System: FreeBSD 12.0-RELEASE #1 r350972M Port Version: 3.2.3 Desktop: Mate-1.20.0 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. Th= is 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"). --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240017-7788>