1 |
On 19 February 2012 23:08, Hartmut Figge <h.figge@×××.de> wrote: |
2 |
> Hartmut Figge: |
3 |
> |
4 |
>>But first i should look into that ominous xdg-open. |
5 |
> |
6 |
> 'man xdg-open' didn't help much, but xdg-open is part of xdg-utils. And |
7 |
> there is e.g. xdg-settings. Looking into 'man xdg-settings' and then |
8 |
> |
9 |
> hafi@i5_64 ~ $ xdg-settings --list |
10 |
> Known properties: |
11 |
> default-url-scheme-handler Default handler for URL scheme |
12 |
> default-web-browser Default web browser |
13 |
> hafi@i5_64 ~ $ xdg-settings get default-web-browser |
14 |
> xdg-settings: unknown desktop environment |
15 |
> |
16 |
> No wonder, there is not such thing as a desktop environment here. Now it |
17 |
> seems that libreoffice assumes that it is run in a desktop environment. |
18 |
> Grmbl. |
19 |
> |
20 |
> Hartmut |
21 |
|
22 |
xdg-open is intended to select an appropriate binary using the MIME |
23 |
type of the argument file. In the absence of gnome-open or kfmclient |
24 |
(the KDE equivalent), it's supposed to parse the files in .local to |
25 |
determine what to open. |
26 |
|
27 |
If you create an appropriate binding to your browser, that should do |
28 |
the trick (using xdg-mime, which is cumbersome but does the job). |