amarakon / dfm

Manage files using dmenu
https://amarakon.github.io/projects/dfm/
GNU Affero General Public License v3.0
24 stars 1 forks source link

On README.md file Enter: "Can't exec "xterm": No such file or directory" #11

Open vitaly-zdanevich opened 4 months ago

vitaly-zdanevich commented 4 months ago
$ ./dfm 
Opening "/tmp/dfm/README.md" with Vim  (text/markdown)
Can't exec "xterm": No such file or directory at /usr/lib64/perl5/vendor_perl/5.38/File/DesktopEntry.pm line 247.
/usr/bin/xdg-open: line 1045: x-www-browser: command not found
amarakon commented 4 months ago

Hmmm I’m not sure what’s causing this issue. Do you these lines in ~/.config/mimeapps.list?

[Default Applications]
text/markdown=vim.desktop

If not, xdg-open tries to guess what you want to open the file with by executing a bunch of commands like xterm and x-www-browser.

vitaly-zdanevich commented 4 months ago

Do you these lines

No I did not have...

vitaly-zdanevich commented 4 months ago

Is it safe to manually add to this file - or will some software override it?

amarakon commented 4 months ago

Hey, sorry for the response. Yes, you should add this file. Replace vim with whatever application you want to open markdown files with.