LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-06-2014, 01:46 AM   #1
bobsie
Member
 
Registered: Apr 2013
Posts: 52

Rep: Reputation: Disabled
Default browser? How to create...


Running Slackware 14.0

Every time I start google-chrome it tells me that chrome is not my default browser. Every time I click the "yes" button. But next time it still asks the same question.

Every time I click a link for help in an application, or to anything which needs to open in a browser, it doesn't work, because it cannot find out what is my default browser. Sometimes it then lets me select the browser I want to use, but it never remembers that selection, but asks me again next time, and every time, for ever and ever...

What (if anything) can I do to fix this annoying problem?
 
Old 01-06-2014, 02:24 AM   #2
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 282Reputation: 282Reputation: 282
I had a similar problem once before with Firefox.

It seemed to me that the problem was each upgrade resulted in another entry under ~/.local/share/applications for the browser and the system got confused as to which one was right.

So have a look in there and see if you have multiple entries and if you do remove them all, then start chrome and tick the default box and see if it stays when you restart chrome again.
 
Old 01-06-2014, 03:05 AM   #3
bobsie
Member
 
Registered: Apr 2013
Posts: 52

Original Poster
Rep: Reputation: Disabled
No, I can't see anything related to the browser in there.
Can you show me what such an entry would look like?

pwd
/home/xxxx/.local/share/applications
[applications]$ ls
mimeapps.list userapp-libreoffice-1LP7WW.desktop
mimeinfo.cache userapp-libreoffice-28D4WW.desktop
userapp-geeqie-8MZGWW.desktop userapp-mplayer-92WTWW.desktop
userapp-geeqie-F5DCXW.desktop userapp-mplayer-HLH7UW.desktop
userapp-geeqie-HQ18WW.desktop userapp-mplayer-X989UW.desktop
userapp-kedit-UELFWW.desktop userapp-xmms-RW5IWW.desktop
userapp-leafpad-I711WW.desktop userapp-xpdf-QOV2WW.desktop
 
Old 01-06-2014, 03:33 AM   #4
manoj_hanse
Member
 
Registered: Mar 2008
Posts: 48

Rep: Reputation: 1
Do this

please check the link below

http://crunchbang.org/forums/viewtopic.php?id=9104
 
Old 01-06-2014, 05:37 AM   #5
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 282Reputation: 282Reputation: 282
bobsie have a look in that mimeapps.list file it has a section on default applications

I must admit the whole mime type setup is currently horribly broken and I'm currently trying to hunt down how wine has become associated with almost everything on my system

manoj hanse the first command in that link doesn't even exist in Slackware.
 
Old 01-06-2014, 06:58 AM   #6
bobsie
Member
 
Registered: Apr 2013
Posts: 52

Original Poster
Rep: Reputation: Disabled
There is a line in mimeapps.list like this -

text/html=google-chrome.desktop

That is the only reference to Chrome that I can see. Anyway it seems to have no effect.

Just to clarify - I don't have any browser selected as default.
When I click on the button in Chrome to make it my default browser, what is it supposed to do? Where is this selection stored, and why can Chrome not set it? If I knew how it was supposed to work, I might be able to fix it.
 
Old 01-06-2014, 11:12 PM   #7
manoj_hanse
Member
 
Registered: Mar 2008
Posts: 48

Rep: Reputation: 1
Hi again,

Try this:

Which google-chrome

rpm -ql (output of previous command)| grep config

If you find default file see if it is corrupt.

else

Reinstall chrome.

Last edited by manoj_hanse; 01-06-2014 at 11:15 PM.
 
Old 01-06-2014, 11:18 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
manoj_hanse: Neither solutions that involve package management for Debian based system nor Red Hat based systems will work in Slackware.
 
Old 01-07-2014, 11:48 AM   #9
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
My only pet peeve with Linux
 
Old 01-07-2014, 02:29 PM   #10
Smokey_justme
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 534

Rep: Reputation: 203Reputation: 203Reputation: 203
hmm... I'm not sure, but could you check "xdg-settings get default-web-browser" ?
 
Old 01-13-2016, 12:20 AM   #11
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,235

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
I just dealt with this. The solution is to make sure that the BROWSER environment variable is not set, as it blocks Chromium from setting itself as the default browser. Yes, really.

I found out by running Chromium from a shell. When I clicked "Set as default", the following got printed the console:

Code:
xdg-settings: $BROWSER is set and can't be change with xdg-settings
 
3 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Details about default web Browser & default Email client sudhasmyle Linux - Software 4 06-15-2006 11:45 AM
How to Change Default Browser to a new browser banner Linux - General 1 05-13-2005 11:09 PM
Default Browser Itsu Linux - Newbie 1 09-18-2004 05:18 PM
gaim browser / default browser question hildog Linux - Newbie 2 10-03-2003 09:17 AM
default browser Toasti Linux - Newbie 2 04-20-2003 03:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration