Page 1 of 2 12 LastLast
Results 1 to 10 of 33

Thread: Steam: Firefox Protocol Handler How-To

Hybrid View

  1. #1
    Join Date
    Mar 2006
    Beans
    168

    Lightbulb Steam: Firefox Protocol Handler How-To

    *Note: This how-to requires wine, steam, and firefox.

    + +FIREFOX


    Ever want those cool links like:
    Code:
    steam:"-applaunch 70 +connect  vnny.dyndns.org:27015"
    to work with Steam under Ubuntu?

    It can be done. This is how I did it.

    • First, create the following script: /usr/bin/steam
      (Type this in a console window)
      Code:
      sudo pico /usr/bin/steam
      (Type this text)
      Code:
      #!/bin/sh
      #
      # Steam wrapper script
      #
      exec wine "c:\\program files\\steam\\steam.exe" "$@"
      (Alternately, you can download it here: steam.tar.gz (203 Bytes)
    • Ensure the new file is executable:
      Code:
      sudo chmod +x /usr/bin/steam


    Firefox 3.5 and higher:
    1. Navigate your firefox browser to about:config
    2. Set up the following values in firefox's about:config page
      Right Click >> New >> Boolean:
      (Preference Name)
      Code:
      network.protocol-handler.expose.steam
      (Boolean Value)
      Code:
      false
    3. Click a Steam hyperlink: [sample link]
    4. When prompted for the application, Click "Browse" and paste the path to our executable:
      Code:
      /usr/bin/steam
    5. Click the check box to remember this application for Steam links
    6. You are finished.



    Firefox 3.0 and older:
    1. Navigate your firefox browser to about:config
    2. Set up the following values in firefox's about:config page
      Right Click >> New >> Boolean:
      (Preference Name)
      Code:
      network.protocol-handler.external.steam
      (Boolean Value)
      Code:
      true
      Right Click >> New >> String:
      (Preference Name)
      Code:
      network.protocol-handler.app.steam
      (String Value)
      Code:
      steam
      Right Click >> New >> Boolean:
      (Preference Name)
      Code:
      network.protocol-handler.warn-external.steam
      (Boolean Value)
      Code:
      false
    3. Test to see if it works: [sample link] and enjoy!
    4. You are finished.



    -Tres
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by fatbuttlarry; December 3rd, 2009 at 02:29 AM. Reason: Added support for Firefox 3.5+

  2. #2
    Join Date
    Mar 2007
    Beans
    29
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Steam: Firefox Protocol Handler How-To

    I just spotted a mistake.

    network.protocol-handler.external.steam

    is in the image but you do not specify to add that preference
    Last edited by Darko-TheRaven; May 7th, 2007 at 09:25 PM.

    Pour me another cup of fresh Ubuntu please.
    w00t!!! Party over here!!

  3. #3
    Join Date
    Mar 2006
    Beans
    168

    Re: Steam: Firefox Protocol Handler How-To

    Thanks! Fixed! Cheers.

    -Tres

  4. #4

    Re: Steam: Firefox Protocol Handler How-To

    Im pretty sure you could do this in gconf... then the links would work in all gnome apps

  5. #5
    Join Date
    Mar 2006
    Beans
    168

    Re: Steam: Firefox Protocol Handler How-To

    Quote Originally Posted by KillerKiwi View Post
    Im pretty sure you could do this in gconf... then the links would work in all gnome apps
    Good idea.

    Does it matter if I don't run gnome lol?

    I'll apt-get that and see what it does!

    -Tres

  6. #6
    Join Date
    Mar 2006
    Beans
    168

    Re: Steam: Firefox Protocol Handler How-To

    Currently running the following command to get gconf installed:
    Code:
    apt-get install gconf-editor
    Then got CORBA errors. So I created a key thing, and it didn't show up.

    I re-opened the program and some stuff was listed. Looks kind of like a registry. Cool. Lol I'm stopping that project right there.

    -Tres

    Last edited by fatbuttlarry; May 8th, 2007 at 09:49 AM.

  7. #7

    Re: Steam: Firefox Protocol Handler How-To

    gconf is like a registry (windows like *ugg* ) only in the fact that its centralised... you can delete it corrupt it etc any everything will still work as the settings are actually distributed xml files.

    Just to clarify it is NOT like the windows regiestry

    END RANT

    anyway you can create gconf keys like this (NOTE: you are ment to create an XML fall back but this hack works fine)

    gconftool-2 -t string -s /desktop/gnome/url-handlers/steam/command exec wine "c:\\program files\\steam\\steam.exe" "%s"
    gconftool-2 -t bool -s /desktop/gnome/url-handlers/steam/enabled true
    gconftool-2 -t bool -s /desktop/gnome/url-handlers/steam/needs_terminal false

    for KDE you can do this



    [Protocol]
    exec=wine "c:\\program files\\steam\\steam.exe" '%u'
    protocol=steam
    input=none
    output=none
    helper=true
    listing=false
    reading=false
    writing=false
    makedir=false
    deleting=false
    icon=package
    Description=steam

    Save this code in ${KDEHOME}/share/services/steam.protocol
    Last edited by KillerKiwi; May 9th, 2007 at 12:55 AM.

  8. #8
    Join Date
    Mar 2006
    Beans
    168

    Re: Steam: Firefox Protocol Handler How-To

    Quote Originally Posted by KillerKiwi View Post
    gconf is like a registry (windows like *ugg* ) only in the fact that its centralised... you can delete it corrupt it etc any everything will still work as the settings are actually distributed xml files.

    Just to clarify it is NOT like the windows regiestry

    END RANT

    anyway you can create gconf keys like this (NOTE: you are ment to create an XML fall back but this hack works fine)

    gconftool-2 -t string -s /desktop/gnome/url-handlers/steam/command exec wine "c:\\program files\\steam\\steam.exe" "%s"
    gconftool-2 -t bool -s /desktop/gnome/url-handlers/steam/enabled true
    gconftool-2 -t bool -s /desktop/gnome/url-handlers/steam/needs_terminal false

    for KDE you can do this



    [Protocol]
    exec=wine "c:\\program files\\steam\\steam.exe" '%u'
    protocol=steam
    input=none
    output=none
    helper=true
    listing=false
    reading=false
    writing=false
    makedir=false
    deleting=false
    icon=package
    Description=steam

    Save this code in ${KDEHOME}/share/services/steam.protocol
    It's my guess, that if I'm using KDE w/ Firefox, Firefox will only know the gconf settings, where as Konqueror will only know the KDE settings?

    This is really cool stuff. Perhaps it's a better solution around the Firefox hack that started this thread. I guess I make a false assumption that most people using steam run firefox, which may not be the case.

    If I can get these changes to take and work, I will update the how-to with the more abstract settings.

    BTW - Does anyone know how to remove these settings from Firefox once they've been created? Lol, I might want to take them back out for testing!

    -Tres
    Last edited by fatbuttlarry; May 9th, 2007 at 04:01 AM.

  9. #9
    Join Date
    May 2007
    Beans
    1
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Steam: Firefox Protocol Handler How-To

    I also had to do a

    Code:
    sudo chmod +x /usr/bin/steam
    before Firefox would properly handle it. It gave error

    "Firefox doesn't know how to open this address, because the protocol (steam) isn't associated with any program."
    The message is confusing, but has been raised in the Mozilla Bugzilla.

  10. #10
    Join Date
    Mar 2006
    Beans
    168

    Re: Steam: Firefox Protocol Handler How-To

    Thanks Orffen! Added to How-To!

    -Tres

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •