Results 1 to 7 of 7

Thread: Xubuntu 12.04 (Xfce 4.12) How to make a file launcher in top panel?

  1. #1
    Join Date
    Apr 2009
    Location
    Saskatoon Canada
    Beans
    980
    Distro
    Xubuntu 12.04 Precise Pangolin

    Xubuntu 12.04 (Xfce 4.12) How to make a file launcher in top panel?

    I have done a lot of searching, but only find directions/guides/wikis on how to add apps to a launcher to the top panel. I figured out how to add a xcalib script to be run in terminal when the launcher icon is clicked, so I am thinking somehow files should be able to be opened in one too. In gnome2, I could just drag the file to the top panel. Not so, with Xfce.

    The first file, a .pdf file, is this one in my home:

    Code:
    /home/mikodo/BP.pdf
    Can anyone tell me how to do this or provide a link on how to do it? I am stuck. If it involve writing scripts, I am screwed, so kindly don't waste your time with that.

    Thanks.

    ;p
    Last edited by mikodo; January 12th, 2013 at 11:16 PM.
    One Psychiatrist's Definition of Insanity:"Knowing what one should do and doing differently"

  2. #2
    Join Date
    Jul 2012
    Beans
    315
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Xubuntu 12.04 (Xfce 4.12) How to make a file launcher in top panel?

    Just create a new launcher and use the program name in the command box, along with the file you wish to open e.g.
    Code:
    evince my.pdf
    When adding to a launcher remember to seek out the "add a new empty item" icon
    The best things in life are free, so what are we paying for?

  3. #3
    Join Date
    Feb 2008
    Location
    Planet earth, for now.
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: Xubuntu 12.04 (Xfce 4.12) How to make a file launcher in top panel?

    Right click the desktop, 'Create Launcher'. Fill in appropriate details as described. Drop it on the taskbar when finished.

  4. #4
    Join Date
    Apr 2009
    Location
    Saskatoon Canada
    Beans
    980
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Xubuntu 12.04 (Xfce 4.12) How to make a file launcher in top panel?

    OK guys! Thank you very much. Evince. OK, now I know the app that opens .pdf's.

    I can't get to Xubuntu 12.04 right now, I am downloading some stuff, from Ubuntu 10.04 that is on the same disk. I'll following your advice, as soon as I can.

    ;p
    One Psychiatrist's Definition of Insanity:"Knowing what one should do and doing differently"

  5. #5
    Join Date
    Mar 2012
    Beans
    304

    Re: Xubuntu 12.04 (Xfce 4.12) How to make a file launcher in top panel?

    Simply use exo-open (Xfce-specific) or xdg-open (desktop-independent) to open a file or URL with the preferred application.
    Code:
    exo-open /home/mikodo/BP.pdf
    GNU/Linux

  6. #6
    Join Date
    Apr 2009
    Location
    Saskatoon Canada
    Beans
    980
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Xubuntu 12.04 (Xfce 4.12) How to make a file launcher in top panel?

    Thanks, for the help everyone.

    I used exo-open and it works. Nice!

    Code:
    exo-open /home/mikodo/BP.pdf
    http://manpages.ubuntu.com/manpages/...xo-open.1.html

    Code:
    exo-open --help
    I'll also play around with evince too!

    Code:
    man evince
    https://help.ubuntu.com/community/Evince



    ;p
    Last edited by mikodo; January 13th, 2013 at 08:22 PM.
    One Psychiatrist's Definition of Insanity:"Knowing what one should do and doing differently"

  7. #7
    Join Date
    Apr 2009
    Location
    Saskatoon Canada
    Beans
    980
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Xubuntu 12.04 (Xfce 4.12) How to make a file launcher in top panel?

    Quote Originally Posted by brainwash View Post
    Simply use exo-open (Xfce-specific) or xdg-open (desktop-independent) to open a file or URL with the preferred application.
    Works for me with = .pdf, & .odt. Haven't tried .rtf . As above URL's too. According to the exo-open --help page, commands in terminal can be run. (eg. xcalib -i -a).

    Cool!
    Last edited by mikodo; January 13th, 2013 at 08:31 PM.
    One Psychiatrist's Definition of Insanity:"Knowing what one should do and doing differently"

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
  •