• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 903
  • Last Modified:

Ubuntu 12.10 - Make PlayOnLinux show up in default program

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
Ronniel Allan Castanito
Asked:
Ronniel Allan Castanito
1 Solution
 
woolmilkporcCommented:
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
 
Ronniel Allan CastanitoIT ManagerAuthor Commented:
Thank you
0
 
filipeataideCommented:
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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Tackle projects and never again get stuck behind a technical roadblock.
Join Now