Bug 253231

Summary: sysutils/gsmartcontrol: fix when using PolKit
Product: Ports & Packages Reporter: Lars Herschke <lhersch>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Some People CC: desktop, fernape, tcberner
Priority: --- Flags: tcberner: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Patch to solve the problem described none

Description Lars Herschke 2021-02-03 20:17:01 UTC
Created attachment 222139 [details]
Patch to solve the problem described

gsmartcontrol-root does not work on systems where PolKit (pkexec) is used to enter the root password.
Comment 1 Lars Herschke 2021-02-03 20:25:51 UTC
The password can be entered, but the application does not start afterwards.
The following error can be seen when calling from the command line.

Unable to init server: Verbindung mit 127.0.0.1 ist gescheitert: Connection refused

(gsmartcontrol:2642): Gtk-WARNING **: 20:59:04.176: cannot open display:
Comment 2 Fernando ApesteguĂ­a freebsd_committer freebsd_triage 2021-02-04 14:10:41 UTC
^Triage: [tags] in issue Titles are deprecated
Comment 3 Tobias C. Berner freebsd_committer freebsd_triage 2022-01-31 19:40:45 UTC
Moin moin 

Committed with a minor change to not hard-code /usr/local.


mfg Tobias
Comment 4 commit-hook freebsd_committer freebsd_triage 2022-01-31 19:41:15 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=924cc379b6dcabc9625e6c04849f4618c739f62a

commit 924cc379b6dcabc9625e6c04849f4618c739f62a
Author:     Lars Herschke <lhersch@dssgmbh.de>
AuthorDate: 2022-01-31 19:35:33 +0000
Commit:     Tobias C. Berner <tcberner@FreeBSD.org>
CommitDate: 2022-01-31 19:40:12 +0000

    sysutils/gsmartcontrol: fix binary path in policy file

    PR:             253231

 sysutils/gsmartcontrol/Makefile                               |  4 +++-
 .../files/patch-data_org.gsmartcontrol.policy (new)           | 11 +++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)
Comment 5 commit-hook freebsd_committer freebsd_triage 2022-01-31 19:43:16 UTC
A commit in branch 2022Q1 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f97fe90e0a0cc38a9e874fc8f5a3e76a4f042384

commit f97fe90e0a0cc38a9e874fc8f5a3e76a4f042384
Author:     Lars Herschke <lhersch@dssgmbh.de>
AuthorDate: 2022-01-31 19:35:33 +0000
Commit:     Tobias C. Berner <tcberner@FreeBSD.org>
CommitDate: 2022-01-31 19:41:20 +0000

    sysutils/gsmartcontrol: fix binary path in policy file

    PR:             253231
    (cherry picked from commit 924cc379b6dcabc9625e6c04849f4618c739f62a)

 sysutils/gsmartcontrol/Makefile                               |  4 +++-
 .../files/patch-data_org.gsmartcontrol.policy (new)           | 11 +++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)