Re: [Zim-wiki] Help with launching a terminal instead of 'files'

2015-10-10 Thread Jaap Karssenberg
Hi Kevin,

I think what you ask is not possible. Or at least not without some custom
code. What you describe is the right behavior: you select a folder, so your
system selects the folder with the default app to show folders.

Changing this is not trivial. You could of course make the terminal the
default app for opening folders, but that would not only affect zim but
also the rest of your desktop environment.

The best next thing is to link to folders as URLs with a custom URL scheme
- e.g. "term://". When you type a link like that in zim, you can go to the
"open with" menu in the context menu to define an application to open these
links.

Either that, or patching zim to implement a preference setting that allows
changing the default folder app.

Regards,

Jaap



On Fri, Oct 9, 2015 at 10:45 PM, Chris Habasinski  wrote:

> Hi
>
> I think you want to look at the gui/applications.py code.
> It looks like it uses xdg and mime-types to figure this out - and allows
> you to create custom types.
>
> Chris
>
>
>
> On 10/09/2015 04:32 PM, Kevin Reynolds wrote:
>
> If I am not asking this question properly please let me know and I will
> re-ask properly.
>
> I am on a Linux Ubuntu system.
>
> When I click on a link to a folder, on any zim notebook page, zim launches
> 'files', my system default file manager.
>
> I have searched my brains out and cannot find where, in what file, that
> link association is.  I want to change it to terminal.
>
> How can I find the file that specifies opening an external folder on my
> hard drive, so I may change it from 'files' to terminal?
>
> Thank you.
>
> Kevin
>
>
>
>
> ___
> Mailing list: https://launchpad.net/~zim-wiki
> Post to : zim-wiki@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~zim-wiki
> More help   : https://help.launchpad.net/ListHelp
>
>
>
> ___
> Mailing list: https://launchpad.net/~zim-wiki
> Post to : zim-wiki@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~zim-wiki
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] Help with launching a terminal instead of 'files'

2015-10-09 Thread Chris Habasinski

Hi

I think you want to look at the gui/applications.py code.
It looks like it uses xdg and mime-types to figure this out - and allows you to 
create custom types.

Chris


On 10/09/2015 04:32 PM, Kevin Reynolds wrote:

If I am not asking this question properly please let me know and I will re-ask 
properly.

I am on a Linux Ubuntu system.

When I click on a link to a folder, on any zim notebook page, zim launches 
'files', my system default file manager.

I have searched my brains out and cannot find where, in what file, that link 
association is.  I want to change it to terminal.

How can I find the file that specifies opening an external folder on my hard 
drive, so I may change it from 'files' to terminal?

Thank you.

Kevin




___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp