Allow pkexec xed
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
Start with the attached com.linuxmint.xed.policy.zip and the target directory /usr/share/polkit-1/actions; compare the policy’s behavior with pkexec xed testfile.txt. Done means pkexec can launch Xed with a relative path and create a missing file without the gksudo workflow.
Written by the indexing model from the issue text.
Description
* Xed version 1.8.2
* Distribution - (Mint 19)
Issue
gksudo has been removed from Linux Mint 19 - as a result "gksudo xed textfile.txt" does not work any-more.
Suggested workaround: "xed admin:///absolut/path/to/existing/textfile.txt"
The suggested workaround is annoying for several reasons:
- it requires an absolute path
- it requires the file to exist already
- it introduced a new, cumbersome syntax
- it requires to put the password twice
I suggest to use pkexec instead:
"pkexec xed testfile.txt" <- currently leads to an error message
Expected behaviour
"pkexec xed testfile.txt" should just work like "gksudo xed testfile.txt"
This would allow using relative path, automatic file creation, use of standard syntax.
Other information
Actually the only thing that is missing is a polkit action file that allows xed to be started.
I will upload a policy file that works for me. This file could just be copied into:
/usr/share/polkit-1/actions
- Dominant language
- C
- Stars
- 551
- Forks
- 115
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from linuxmint/xed
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
Similar issues
-
level/task module/gcp type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
hapostgres/pg_auto_failover#1190 ·
-
docs
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
P3 sonic-vpp
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sonic-net/sonic-buildimage#29662 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
spack/spack-packages#6586 ·