Re: [Evolution] Open links in the background? (Firefox)

2021-12-16 Thread Adam Tauno Williams
> > by Evolution. IOW this might be a missing feature for Evolution.
> > Actually I didn't check if such a feature does already exist for
> > Evolution, too. I just haven't seen one.
> Hm, if xdg runs the same script for all apps that want to open the
> default browser, it would be possible to get the window that is
> focused when clicking the link, to buffer that window information and
> after running the browser and losing focus, to immediately set focus
> back to the buffered window. So I was mistaken, xdg is good enough
> and should be usable to launch a script using wmctrl and maybe
> xdotool.

Yep, you can do anything you like - a process can easily determine its
parent.  You can do something as complicated as you like; you could
write a python shim that determined what to do with the link-open based
on a configuration file, recorded every link in a database, etc...

-- 
Highland Park Neighborhood Association
Adam Tauno Williams, Board Chair
Grand Rapids, MI.

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Open links in the background? (Firefox)

2021-12-15 Thread Ralf Mardorf via evolution-list
On Wed, 15 Dec 2021 18:26:16 +0100, Ralf Mardorf via evolution-list
wrote:
>On Wed, 2021-12-15 at 06:18 -0500, Adam Tauno Williams wrote:
>> > It only works, if Firefox is already running.
>> > To workaround window issues scripts using the command wmctrl and
>> > the command xdotool are usually helpful. However, in this case a
>> > mailer providing an option to chose the external browser or script
>> > would be helpful. I don't know if Evolution has got such an option
>> > or if it does
>> > run the default browser.  
>> 
>> Evolution relies on XDG; you can set the browser to any command you'd
>> like.
>>   
>
>This is a big problem, since all apps that rely on xdg would use the
>chosen default browser by this command. For a mailer like e.g. Claws,
>that allows to chose the browser or script by the Claws presets, it
>would be very easy to run a script that does use any browser, even the
>xdg browser and to give the Claws window focus by wmctrl. You don't
>want to run the same script giving focus to Claws, when opening a link
>by Evolution. IOW this might be a missing feature for Evolution.
>Actually I didn't check if such a feature does already exist for
>Evolution, too. I just haven't seen one.

Hm, if xdg runs the same script for all apps that want to open the
default browser, it would be possible to get the window that is focused
when clicking the link, to buffer that window information and after
running the browser and losing focus, to immediately set focus back to
the buffered window. So I was mistaken, xdg is good enough and should
be usable to launch a script using wmctrl and maybe xdotool.
___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Open links in the background? (Firefox)

2021-12-15 Thread Ralf Mardorf via evolution-list
On Wed, 2021-12-15 at 06:18 -0500, Adam Tauno Williams wrote:
> > It only works, if Firefox is already running.
> > To workaround window issues scripts using the command wmctrl and the
> > command xdotool are usually helpful. However, in this case a mailer
> > providing an option to chose the external browser or script would be
> > helpful. I don't know if Evolution has got such an option or if it
> > does
> > run the default browser.
> 
> Evolution relies on XDG; you can set the browser to any command you'd
> like.
> 

This is a big problem, since all apps that rely on xdg would use the
chosen default browser by this command. For a mailer like e.g. Claws,
that allows to chose the browser or script by the Claws presets, it
would be very easy to run a script that does use any browser, even the
xdg browser and to give the Claws window focus by wmctrl. You don't want
to run the same script giving focus to Claws, when opening a link by
Evolution. IOW this might be a missing feature for Evolution. Actually I
didn't check if such a feature does already exist for Evolution, too. I
just haven't seen one.
___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Open links in the background? (Firefox)

2021-12-15 Thread Adam Tauno Williams
> It only works, if Firefox is already running.
> To workaround window issues scripts using the command wmctrl and the
> command xdotool are usually helpful. However, in this case a mailer
> providing an option to chose the external browser or script would be
> helpful. I don't know if Evolution has got such an option or if it does
> run the default browser.

Evolution relies on XDG; you can set the browser to any command you'd
like.

-- 
Adam Tauno Williams  GPG D95ED383
OpenGroupware Developer 

___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Open links in the background? (Firefox)

2021-12-14 Thread Ralf Mardorf via evolution-list
On Tue, 2021-12-14 at 12:27 -0700, Tim Folger via evolution-list wrote:
> On Tue, Dec 14, 2021, at 5:36 AM, theapple...@differentmail.com wrote:
> > > 
> > Open config window in Firefox: about:config 
> > there find: browser.tabs.loadDivertedInBackground
> > and change to True
> > 
> > Thanks for the suggestion, Dan. Unfortunately it didn't work for me.
> > When I click on a link in Evolution the focus still immediately
> > shifts to Firefox, even if Firefox is in a different workspace.

It only works, if Firefox is already running.

To workaround window issues scripts using the command wmctrl and the
command xdotool are usually helpful. However, in this case a mailer
providing an option to chose the external browser or script would be
helpful. I don't know if Evolution has got such an option or if it does
run the default browser.
___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Open links in the background? (Firefox)

2021-12-14 Thread Tim Folger via evolution-list
On Tue, Dec 14, 2021, at 5:36 AM, theapple...@differentmail.com wrote:
> > When I click a link in an email message I'd like Web (my default
> > browser) or Firefox to start loading the link in the background while
> > the Evolution window remains in focus on the screen. 
> 
> For Firefox, this helped me:
> Open config window in Firefox: about:config 
> there find: browser.tabs.loadDivertedInBackground
> and change to True
> 
> No idea about a "Web" solution.
> 
> Cheers
> 
> Dan
> 
> Thanks for the suggestion, Dan. Unfortunately it didn't work for me. When I 
> click on a link in Evolution the focus still immediately shifts to Firefox, 
> even if Firefox is in a different workspace.
> 
> ___
> evolution-list mailing list
> evolution-list@gnome.org
> To change your list options or unsubscribe, visit ...
> https://mail.gnome.org/mailman/listinfo/evolution-list
> 
___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list


Re: [Evolution] Open links in the background? (Firefox)

2021-12-14 Thread theapple...@differentmail.com
> When I click a link in an email message I'd like Web (my default
> browser) or Firefox to start loading the link in the background while
> the Evolution window remains in focus on the screen. 

For Firefox, this helped me:
Open config window in Firefox: about:config 
there find: browser.tabs.loadDivertedInBackground
and change to True

No idea about a "Web" solution.

Cheers

Dan



___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list