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 8555703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:11:05+00:00 2026-06-11T15:11:05+00:00

I’m making a program with Ruby where I need to know the default browser

  • 0

I’m making a program with Ruby where I need to know the default browser of the user (actually, I want to know if his/her default browser is Chrome or Chromium (and which one)). How can I do that?

  • 1 1 Answer
  • 0 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. Editorial Team
    Editorial Team
    2026-06-11T15:11:06+00:00Added an answer on June 11, 2026 at 3:11 pm

    You can find out default user browser with bash command, and then check out inclusion of chrome or chromium substring. Something like this.

    1.9.3p194 :001 > mimelist = `cat ~/.local/share/applications/mimeapps.list | grep text/html`
     => "text/html=google-chrome.desktop\n"
    1.9.3p194 :004 > mimelist.include?('chrome')
     => true 
    1.9.3p194 :005 > mimelist.include?('chromium')
     => false
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently making a program which is supposed to prompt the user to
I am trying out ruby by making a program i need. I have a
I'm making a program which the user build directories (not in windows, in my
I'm making a program and I need to use another program's API. Which then
I'm just learning Ruby and making a simple Hello World program, put for some
I am using the cool map making program DIY map and i want to
I am making a program with which to save banking information (i.e., account, password,
I'm making a program in Java which will automatically move all of the .png
I am making a program in which I am inheriting publicly my Set class
Im making a program in C# that has passwords and I need to encrypt

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.