Jump to content


Photo

How Do You Change The Default Browser?


  • Please log in to reply
7 replies to this topic

#1 Mr Loon

Mr Loon

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 352 posts
  • Gender:Male
  • Interests:Waiting patiently.
    Repeatedly checking forums.

Posted 29 June 2010 - 05:18 PM

Does anyone know how to change the default browser to Chromium?

Was going to be lazy and wait for it to be done with hotfix 3 but it appears the change in default browser did not make the fix.

I've tried SETTINGS, PREFERRED APPLICATIONS, gone to the drop down list and selected other and then browsed to chromium.pnd

However what I really want is to point it at chromium.exe (or linux equivalent).

So I guess my question should be : Where can I find chromium.exe?

#2 mindlord

mindlord

    Notices Two Things

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1346 posts
  • Gender:Male
  • Location:In a cave.
  • Interests:Sharp Pointy Objects, and World Domination

Posted 29 June 2010 - 05:33 PM

you need to make it say:
pnd_run /media/[Card ID]/pandora[apps/menu/desktop]/chromium.pnd


#3 Mr Loon

Mr Loon

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 352 posts
  • Gender:Male
  • Interests:Waiting patiently.
    Repeatedly checking forums.

Posted 29 June 2010 - 06:08 PM

you need to make it say:

pnd_run /media/[Card ID]/pandora[apps/menu/desktop]/chromium.pnd


Cheers for the quick response mindlord.

But it does not seem to work, no LED showing SD being read, nothing happens, no error message.

This is what I tried :
pnd_run /media/PAN_APPS/pandora/apps/Chromium.pnd "%s"

The PND begins with a capital C and my SD card is called PAN_APPS. The "%s" appears to be added automatically by the system.

#4 Alerino

Alerino

    Mega GP Mania

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1483 posts

Posted 29 June 2010 - 06:12 PM

i wonder if it requires super user privileges maybe (sudo) but i agree it's not supposed to

or maybe like this: "./pnd_run ..."

Edited by Alerino, 29 June 2010 - 06:14 PM.


#5 mindlord

mindlord

    Notices Two Things

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 1346 posts
  • Gender:Male
  • Location:In a cave.
  • Interests:Sharp Pointy Objects, and World Domination

Posted 29 June 2010 - 06:34 PM

I'll download it and tinker. If I find the solution I'll post it here. :)


Edit: Solution:
surround the pnd_run /media/[Card ID]/pandora/apps/Chromium.pnd with single quotes fn+a

'pnd_run /media/PAN_APPS/pandora/apps/Chromium.pnd' "%s"

Edited by mindlord, 29 June 2010 - 06:43 PM.


#6 Mr Loon

Mr Loon

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 352 posts
  • Gender:Male
  • Interests:Waiting patiently.
    Repeatedly checking forums.

Posted 29 June 2010 - 07:33 PM

Solution:

'pnd_run /media/PAN_APPS/pandora/apps/Chromium.pnd' "%s"


Worked a treat, many thanks Mindlord, you da man. :)

Nice to learn a little bit about command line syntax as well.

#7 Esn

Esn

    (:\

  • GP32 Hardcore
  • PipPipPipPipPipPip
  • 2758 posts
  • Gender:Male
  • Location:Toronto, Canada
  • Interests:Art, Classical Music, Biology, Fantasy/Sci-Fi (books, art, movies, games), Crosscountry skiing, adventuring to foreign parts, and of course, handheld gaming machines. ;)

Posted 07 March 2011 - 04:56 AM

I just tried changing my default browser to links.pnd in the Xfce settings, and it didn't work. It also didn't recognize pnd files as being executables.
So the only way to do this is via command line? Isn't that a bug that should be fixed?

#8 mash-system

mash-system

    Member

  • Members
  • PipPip
  • 9 posts

Posted 07 March 2011 - 02:40 PM

I just tried changing my default browser to links.pnd in the Xfce settings, and it didn't work. It also didn't recognize pnd files as being executables.
So the only way to do this is via command line? Isn't that a bug that should be fixed?

Change it with Settings -> Preferred Applications -> Web Browser to read (note the single quotes):

'pnd_run /media/YOUR_SD_CARD/path/to/links.pnd' "%s"
This works for me eg. when you click on the Browser-Icon on the Xfce-Panel.

But this has really a caveat: if some application now tries to start the Xfce-Standard-Browser by calling

exo-open --launch WebBrowser "http://example.com"
you'll get an error-message stating it can't execute the default web-browser.
This is independent of the browser, this message appears with Chromium, Links2 and NetSurf.

If you leave out the "http://example.com"-part, the browser opens without problems.
Seems there's some trouble with the parameter-handling in the way Xfce calls the pnd_run.

But many thanks to you - i've noticed that my startup-script in my links-package doesn't honour parameters - will reupload soon a changed version to the file-archive!

EDIT: new Version of Links2 now honours commandline-parameter.

Edited by mash-system, 10 March 2011 - 03:37 PM.