Solved

Ubuntu 12.10 - Make PlayOnLinux show up in default program

Posted on 2012-12-30
3
879 Views
Last Modified: 2013-01-22
Hi Expert,

I installed a fresh Ubuntu 12.10 with PlayOnLiinux and MS Office 2007. MS Office applications works just fine. I'm just trying to make the .docx use MS Words as the default application. I've been looking around the web and seen instructions saying I should try to set the .docx default program to Playonlinux.

I can't set .docx to use Playonlinux as the default program. Its not showing up on my default program list.

Can you please help direct me in the right direction?

Thanks
Rick
0
Comment
Question by:RiCzN
3 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 38732379
To get PlayOnLinux (or any app) into the "open with other application" list, you need to create a .desktop file in ~/.local/share/applications with a line in it like this: Exec=<command> %f

For exxample, create "playonlinux.desktop":

[Desktop Entry]
Categories=;
Comment=Open files with PlayOnLinux
Exec=PlayonLinux %f
Hidden=false
Icon=playonlinux
Name=PlayOnLinux
Terminal=true
Type=Application
Version=1.0

This will make "PlayOnLinux" appear in the list of possible apps.

Customize the "Exec" name to match the exact name (and possibly the path) of the PlayOnLinux binary, and change the icon name appropriately (if there's an icon with PlayOnLinux).

Now to create a default add to ~/.local/share/applications/defaults.list somehing like

application/vnd.openxmlformats-officedocument.wordprocessingml.document=playonlinux.desktop
0
 

Author Closing Comment

by:RiCzN
ID: 38732773
Thank you
0
 

Expert Comment

by:filipeataide
ID: 38805427
It seems that indeed it does what it is intended to do, but in the end it just opens a blank file, not the selected one. Are you also getting this?
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question