Solved

Ubuntu 12.10 - Make PlayOnLinux show up in default program

Posted on 2012-12-30
3
875 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
Comment Utility
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
Comment Utility
Thank you
0
 

Expert Comment

by:filipeataide
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now