Re: xdg-open and libreoffice

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 28 February 2020 01:54:26 pm Dr. Nikolaus Klepp wrote:
> Anno domini 2020 Fri, 28 Feb 13:49:24 -0600
>
>  David C. Rankin scripsit:
> > On 02/28/2020 12:41 PM, Dr. Nikolaus Klepp wrote:
> > > hi all!
> > >
> > > Looks like a little GNOME just hit me with a club: I'm working on a
> > > presentation with libreoffice impress (yes, I hnow, why ...). Now that
> > > thing has a function "Edit image using external tool". Selecting that,
> > > impress calls "xdg-open file://tmp/sdfsfewf.png" - which call in my
> > > case kuickshow - which is not surprising, as I use kuickshow for
> > > viewing images. But how do I persuade that piece of a genius to call
> > > gimp ???
> > >
> > > Nik
> >
> > Start Menu -> Settings -> Control Center -> TDE Components -> File
> > Assiciations -> image -> png
> >
> > in Application Preference Order - highlight GIMP and choose [Move Up]
> > until GIMP is at the top of the list.
> >
> > That should do it, if not, click the Embedding tab and set the radio
> > button to 'Show file in separate viewer'.
> >
> > If that doesn't do it, then I'm out of bullets.
>
> Well, yes, but that kills the setting for the rest of the system :(

Which is what it's suppose to do...  ;)

michael@local [~]# xdg-open --help
xdg-open - opens a file or URL in the user's preferred application

I don't think the current rev's of LO have the ability to allow you to choose 
what applications to use like FF does.  I believe OO use to, but I'm finding 
nothing in Options  (and if it did it'd most likely be under either  Tools > 
Options > LibreOffice or Tools > Options > LibreOffice Base)

I wouldn't, but you could write a wrapper for xdg-open that captures 
what/who's sending the request to do what you want.  Most likely be a huge 
pita, here's a way to get the parent pid:

$$ is defined to return the process ID of the parent in a subshell; from the 
man page under "Special Parameters":
https://stackoverflow.com/questions/21063765/why-is-returning-the-same-id-as-the-parent-process

Best,
Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: trinity-users-unsubscribe@xxxxxxxxxxxxxxxxxxxxxxxxxx
For additional commands, e-mail: trinity-users-help@xxxxxxxxxxxxxxxxxxxxxxxxxx
Read list messages on the web archive: http://trinity-users.pearsoncomputing.net/
Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting




[Index of Archives]     [Trinity Devel]     [KDE]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]     [Trinity Desktop Environment]

  Powered by Linux