Amit Agarwal

Linux and Photography Blog
international
service

if you want to open any document with the default document handler from the bash prompt or command prompt in linux then the simplest way to do that is use “xdg-open“.

This can also be used in bash scripts to allow users to select which document to open without worrying about if a particular application is installed or not. Example could be where you have list of documents in the current directory (same kind or of different format.) and you want the user to select the document. In such a scenario you can take the user input for the filename and user “xdg-open filename” to open the file irrespective of the file type or worrying about if xpdf is installed or abiword is installed or not.

Enter Your Mail Address

Linux xdg-open — replacement for start in windows Linux xdg-open — replacement for start in windows

Facebook comments:

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment



IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)

What is 14 + 12 ?
Please leave these two fields as-is:
terms

© 2010 Amit Agarwal | Entries (RSS) and Comments (RSS) | Valid CSS 2.1 Valid XHTML 1.0 Transitional

Powered by Wordpress 3.0.1, design by Abel, handcrafted by Abel County Laboratories, based on Wsg Standards Wsg Standards

contact

Switch to our mobile site

Page optimized by WP Minify WordPress Plugin