Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 123359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T04:16:27+00:00 2026-05-11T04:16:27+00:00

On Gnome/KDE you can select in which application you want to open file (Right

  • 0

On Gnome/KDE you can select in which application you want to open file (Right click on file -> Open With -> Other). Is it possible open file that way, but from console?

For example: you print ‘ file.ext’ and instead of opening in concrete application, there are that application selection window forced and then users chooses – starts selected program.

I tried to figure out that myself, but not found anything like that.

‘edit file.ext’ doesn’t fits my needs, because it starts preferred application and you cannot choose which. And also on my desktop it says: ‘Error: no ‘edit’ mailcap rules found for type ‘image/jpeg’

So, am I able to forse that ‘open with’ window from console? If yes, can you say how? Both on windows and mac you can do such things.

//edit at 2009-02-10 14:17

Thank you very much for answers. Command will be used in program code, so unfortunately probably I would not be able to make some extra bash scripts.

  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T04:16:27+00:00Added an answer on May 11, 2026 at 4:16 am

    For GNOME:

    gnome-open <file> 

    For KDE:

    kfmclient exec <file> 

    These commands should open up the <file> in the preferred application in GNOME or KDE respectively, although I don’t have an installation of either to test on.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using gnome-terminal. Is it possible to make it(or any other terminal) beep
I want to open a folder window, in the appropriate file manager, from within
I want to build a new desktop environment for linux like KDE or GNOME,
Can a GNOME application be automated? I.e., can I programatically interact with its user
Is it possible to use a GUI (gnome) that is installed on another machine
Is there any way to change the font size of terminal window(GNOME or KDE)
Image will say all: When I maximize emacs in GNOME, KDE or other DE,
I'm planning to take a non-GUI Linux distro (no Gnome, KDE, etc) and build
I'm writing an app for gnome which will support plugins. Each plugin will contain
Is there a way to launch a gnome-terminal from the command line (i.e., using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.