Use the currently default system editor instead of mcedit #102
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
not a bug
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DiamantTh/installimage!102
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "systemeditor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The user should have the possibility to use an editor that he likes and not be forced to use
mcedit.On the rescue system (or other Debian/Ubuntu's)
editoris/usr/bin/editorand a symlink to the current default editor.The user can easily change this
update-alternatives --config editorif he likes another editor better.Sorry, we cannot accept this PR. Doing so, would change the editor for installimage for everyone and setting editor to mcedit in our rescue system is also a breaking change.
The choice of mcedit is deliberate as it is very easy to use and obvious how to save and exit.
We understand it may not be the editor of choice for everyone.
And what if you set the default editor in the rescue environment already to mcedit ?
(Placing
update-alternatives --install /usr/bin/editor editor /usr/bin/mcedit 50in/etc/rc.localis already enough for this to work)Would this PR be acceptable then ?
Advantages:
update-alternatives --config editorbefore running installimageSorry, but as mentioned any changes would break expectations for all other users and so we do not accept any PRs here.
Yet another idea:
This time it will literally not change anything to the default behavior. Not even the default systemeditor. Even this PR is no longer needed.
/usr/bin/mceditis a direct symlink to/usr/bin/mc./etc/rc.local:rm /usr/bin/mcedit && update-alternatives --install /usr/bin/mcedit mcedit /usr/bin/mc 20the result would be that/usr/bin/mceditis a symlink to/etc/alternatives/mceditand this in turn will be a symlink to/usr/bin/mc(So in practice mcedit is still a symlink to mc like it was before)The only thing that is now "changed" (if you can call it a change) on the system is that users now have the option to do
update-alternatives --install /usr/bin/mcedit mcedit /location/of/favorite/editor 30to use the editor that they prefer.Again, I am sorry, but we have no plans to make such changes to the rescue system just to enable this. If you really cannot bear to use mcedit for, hopefully infrequent, installations, you can always use your favorite editor to create a config file and pass this to installimage using the
-coption.Thanks for the inspiration ngaro. I just did
ln -sf /usr/bin/vim /usr/bin/mceditto workaround this.Pull request closed