[Linux] Have PO on launcher widgets

Discussion in 'Help' started by Zzyzx Road, Aug 8, 2013.

Moderators: E.T., Zoroark
  1. Zzyzx Road

    Zzyzx Road Member

    Joined:
    Feb 16, 2012
    Messages:
    572
    Likes Received:
    2
    PO Trainer Name:
    Zzyzx Road
    Well, this would probably best fit into a Linux help forum than PO's Help, but I've been trying it for a while with a lot of applications downloaded in a similar fashion to PO and no threads helped me so far in my quest.

    The thing is, I'm using Mint 14 with KDE and what I want is pretty simple - PO needs to be recognized as an installed application in the system so I can execute it from Kickoff/Lancelot launchers or make shortcuts/taskbar icons with just one click instead of 3-4 separate steps.

    OK that was probably a dumb question but I hope you guys get it better than the guys in their own OS's forum. Thanks for any help!
     
  2. coyotte508

    coyotte508 Well-Known Member Administrator Server Owner Administrator Server Owner

    Joined:
    Apr 21, 2010
    Messages:
    6,363
    Likes Received:
    168
    If you have the start-client.sh file, make a shortcut on it on the desktop.

    Otherwise here's the contents:

    Code (sh):
    1. #!/bin/sh
    2. PO_BIN=`readlink -ens "$0"`
    3. PO_DIR=`dirname "$PO_BIN"`
    4.  
    5. export LD_LIBRARY_PATH="$PO_DIR:$LD_LIBRARY_PATH"
    6. cd "$PO_DIR"
    7. exec ./Pokemon-Online
    8.  
    Save that in the PO folder and make a shortcut of it wherever you want.
     
  3. Zzyzx Road

    Zzyzx Road Member

    Joined:
    Feb 16, 2012
    Messages:
    572
    Likes Received:
    2
    PO Trainer Name:
    Zzyzx Road
    Thanks but that's not really what I meant. I mean, I can do that and it's how it's configured right now. But there's a handful of things that can't be done with a click-and-run program, such as it being accessible in the system launchers (and subsequently task managers) and not having a unique terminal command (something like $ pokemononline). I'm pretty sure this is manually fixable, I'm just unsure how​.
     
  4. Lamperi

    Lamperi I see what you did there

    Joined:
    Apr 25, 2010
    Messages:
    2,647
    Likes Received:
    11
  5. Zzyzx Road

    Zzyzx Road Member

    Joined:
    Feb 16, 2012
    Messages:
    572
    Likes Received:
    2
    PO Trainer Name:
    Zzyzx Road
    As soon as I migrate to Xfce and fix a lack-of-Qt5-libs issue, things I'm doing today, I'm all committed to it. Thanks!
     
Moderators: E.T., Zoroark