Package Details: wxhexeditor 0.24-4

Git Clone URL: https://aur.archlinux.org/wxhexeditor.git (read-only)
Package Base: wxhexeditor
Description: A free hex editor / disk editor for Linux, Windows and MacOSX
Upstream URL: http://www.wxhexeditor.org
Licenses: GPL2
Submitter: None
Maintainer: mxfm
Last Packager: mxfm
Votes: 75
Popularity: 0.51
First Submitted: 2009-01-20 22:52
Last Updated: 2019-09-07 17:31

Dependencies (4)

Required by (0)

Sources (3)

Latest Comments

1 2 3 4 5 6 ... Next › Last »

mxfm commented on 2019-08-10 14:15

@toyarchery, I was not aware of this.

Patch is added, gksu and polkit are added as optdepends. Tested on my laptop.

toyarchery commented on 2019-08-10 13:13

I agree, but that's how wxHexEditor was designed: temporarily getting read/write access by chown, and limiting root access to this command. It already does that with gksu, but it would be more future-proof to use pkexec instead

mxfm commented on 2019-08-10 12:54

@toyarchery, I don't understand you. What is your goal?

If you want to run editor as root, you can run 'sudo wxHexEdit'. It just works. What added value does gksu or pkexec policy provide?

If you want to execute wxHexEditor in a such way, that only changes are written with root access, then this is impossible. Either the whole app is run as root or not.

The idea behind polkit is that application should be written in a such way, that only piece that requires root access is executed via polkit. Since wxHexEditor is 'legacy app' in this regard, this aspect is irrelevant because the whole app must be run as root. You are not making code more secure by executing it with gksu/polkit instead of sudo.

Regarding the patch. Does it try to change permission of file by executing 'pkexec --user root chown' in order to write to it? This does not work in general case. For example, I want inspect my drive /dev/sda and changing its ownership is not a good idea.

toyarchery commented on 2019-08-10 11:52

Alright, I've sent a pull request to upstream to add support for pkexec. In the meantime we can either add gksu regardless or patch it with pkexec

mxfm commented on 2019-08-10 08:57

@toyarchery, I could not make gksu-polkit-git because git.debian.org is down, AFAIK it is down for 1-2 years (the package was last updated in 2015).

Regarding running wxHexEditor as root. You can use folowing policy file (/usr/share/polkit-1/actions/org.freedesktop.wxHexEditor.policy):

<policyconfig> <action id="org.freedesktop.policykit.exec.wxHexEditor"> <message>Authentication is required to run wxHexEditor </message> <defaults> <allow_any>auth_admin</allow_any> <allow_inactive>auth_admin</allow_inactive> <allow_active>auth_admin</allow_active> </defaults> <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/wxHexEditor</annotate> <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate> </action> </policyconfig>

and execute 'pkexec wxHexEditor'.

However, this seems unnecessary because the whole wxHexEditor is running as root and there is no difference comparing to running with 'sudo'.

toyarchery commented on 2019-08-06 09:02

Oh ok, I guess gksu-polkit-git can also be used instead

mxfm commented on 2019-08-06 08:57

gksu was obsoleted by gnome some time ago (and it had no contribution since 2011 or so). It should be replaced with polkit support (read wiki page "Running applications as root"). The gksu package was removed from arch repos 1-2 years ago.

On the other hand, this package can provide a '.rules' file as a measure to support root priviliges instead of gksu. I will look at weekend.

toyarchery commented on 2019-08-05 20:08

It should have gksu as an optional dependency, this or gnomesu is used when you try to open a device without permission

dario commented on 2019-06-06 17:43

@mxfm, you're welcome.

mxfm commented on 2019-05-25 09:44

@dario, thanks. PKGBUILD was updated to use wxgtk3. In addition, python was added to makedepends as some components seems to regure it during compilation. When doing building in clean chroot, I had "configure: error: Python was not found".