14

I'm new with Ubuntu, and I read in another thread that to open a file in the default editor (gedit for me), I need to run xdg-open, but for some reason, when I run the command xdg-open app.js I'm getting a bash: xdg-open: command not found notification. Why is it?

Following a request from a comment, the output of echo $PATH is :

/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/efiminzer/.local/bin:/home/efiminzer/bin
Byte Commander
  • 105,631
  • 46
  • 284
  • 425
Efi
  • 141
  • 1
  • 1
  • 4

1 Answers1

19

Install/reinstall the package xdg-utils:

sudo apt-get install --reinstall xdg-utils

/usr/bin/xdg-open is part of this package.

A.B.
  • 89,123
  • 21
  • 245
  • 323