You are not logged in.

#1 2010-05-05 01:06:52

tawan
Member
Registered: 2010-03-02
Posts: 290
Website

[how to] Thunar forgets preferred / default applications in Openbox

This was my situation:

I would set default image viewer to gpicview, default for movies and music was vlc, default for PDF's was evince. After reboot these settings would be forgotten and the system would use gimp for images, mplayer for movies and music and gimp(!?!) for PDF's

This was my fix:

edit ~/.bashrc and add this

#set desktop environment as XFCE so default apps can be managed
export DE=xfce

now in terminal follow these ideas...

1) to check the MIME of a file do this

xdg-mime query filetype ~/imagelocation/imagename.png

response is

image/png

2) tell it to use a certain program

xdg-mime default gpicview.desktop image/png

0) To get the name of the program:

navigate to /usr/share/applications and get properties on the relavant program. Check the "Launcher" tab and copy the command.

Offline

#2 2010-05-05 02:46:45

bsdson.tw
Member
From: Taiwan
Registered: 2005-05-06
Posts: 161

Re: [how to] Thunar forgets preferred / default applications in Openbox

Thanks, tawan.

But I can not set my default application correctly.
What I did is as follow:

[Desktop:henry 10:37]$ xdg-mime default writer.desktop application/vnd.ms-office
[Desktop:henry 10:39]$ xdg-mime default mousepad.desktop text/plain
[Desktop:henry 10:41]$ xdg-open ./doc.doc
method return sender=:1.10 -> dest=:1.9 reply_serial=2

but xdg-open still use "mousepad" (my default application for plain text) to open this office doc.

I don't know what did I do wrong here...?

Offline

Board footer

Powered by FluxBB