Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
81
rated 0 times [  81] [ 0]  / answers: 1 / hits: 39667  / 3 Years ago, tue, may 4, 2021, 9:25:06

What is a current replacement of gnome-open command (generic open of files based on the type)?



Before:



gnome-open mydoc.pdf  # opened PDF in default application


Now:



gnome-open
The program 'gnome-open' is currently not installed. You can install
it by typing: sudo apt-get install libgnome2-0

More From » gnome

 Answers
5

You can use xdg-open to open documents, like so:



xdg-open mydoc.pdf


This has a bonus of being desktop agnostic so it should work regardless of what desktop the user has installed. In GNOME itself gnome-open has been replaced by gvfs-open.



References:




[#42808] Wednesday, May 5, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
pipeag

Total Points: 489
Total Questions: 107
Total Answers: 115

Location: Iraq
Member since Fri, Jun 5, 2020
4 Years ago
;