profile.d comes with a explicit dependency on nano even when nano is not installed #24
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
profiles/manjaro-gnome-settings#24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
when trying to configure a crontab for my user, I was greeted with the following message:
This is actually correct, I do not have nano installed on my workstation:
Now as it seems, manjaro-gnome-settings come with a hard dependency for nano in
/etc/profile.d/nano-default-editor.sh, ignoring the fact, if it is installed in the system or not. In my case, I replaced nano in favour of vim.IMHO the correct solution would be if the nano package provides this /etc/profile.d/nano-default-editor.sh file, or like in other distributions, to have dedicated nano-default-editor, vim-default-editor, emacs-default-editor, ... packages. This would make it easy to switch the default editor.
I've dropped
nano-default-editor.shas it's not needed. The default editor is already set tonanoin/etc/environment.thx.
Following your
/etc/enviromentlink, I see thatnanois actually a shared root packagehttps://gitlab.manjaro.org/profiles-and-settings/iso-profiles/-/blob/master/shared/Packages-Root
and so it makes some sense to have it registered as the EDITOR in
/etc/environment. So I guess, without mangling with either theiso-profilesor thenanopackage, there is no easy fix for the case that nano has been uninstalled?Whoops. I forgot I moved everything to
/etc/profile.d/. I'm going to reverse the change I made. You can override any defaults in userspace.FYI, I use
microinstead ofnanoand usegeditfor a graphical editor. I have this in my~/.profile: