Allow pkexec xed

Open Beginner friendly
#238 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Quiet
Tech stack
linux
Domain
desktop, security

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

FEATURE REQUEST
 * 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:

  1. it requires an absolute path
  2. it requires the file to exist already
  3. it introduced a new, cumbersome syntax
  4. 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

com.linuxmint.xed.policy.zip

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linuxmint/xed

All issues in linuxmint/xed

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.