Ubuntu 12.10 - Make PlayOnLinux show up in default program

Ricky Nguyen
Ricky Nguyen used Ask the Experts™
on
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2013
Top Expert 2013
Commented:
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

Author

Commented:
Thank you
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?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial