@guss77, I’m really surprised that setting the default in kcm_componentchooser
sets xdg-mime default $application text/plain
: [1]
-
-
#!/usr/bin/env sh xdg-mime query default text/plain
-
code.desktop
-
…yet doesn’t set $Env:EDITOR
:
-
#!/usr/bin/env sh echo "$EDITOR"
-
/usr/bin/nano
Thanks for that! Interestingly, though, that appears to be somewhat broken, for although the file opens in kwrite-24.12.3-1.fc41.x86_64
, another, empty tab labelled “+4” appears too:
-
#!/usr/bin/env bash EDITOR="$(command -v kwrite)" && \ # `/usr/bin/kwrite` systemctl --user edit plasma-powerdevil.service
Even more interestingly, closing the filled tab closes the other simultaneously! This doesn’t occur if the opposite tab is closed first.
Multiple tabs also appear in code-1.98.0-1741124844.el8.x86_64
, but the other file is empty:
-
#!/usr/bin/env bash EDITOR="$(command -v code)" && \ # `/usr/bin/code` systemctl --user edit plasma-powerdevil.service
This doesn’t close one tab when the other does, and systemctl
erroneously considers the file to have been “installed” (saved?) the moment that the code
process is spawned.
Perhaps there’s reason that $(command -v nano)
is prefilled.