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?

2021-12-14 Thread Tim Folger via evolution-list



On Tue, Dec 14, 2021, at 1:16 AM, Milan Crha via evolution-list wrote:
> On Mon, 2021-12-13 at 23:28 -0700, Tim Folger via evolution-list wrote:
> > But when I click a link in Evolution the desktop focus shifts to the
> > browser instead of remaining with Evolution.
> 
> Hi,
> I'm also not happy with that behavior, though I've been told, long time
> ago, that it had been requested by the designers or someone, thus the
> browsers follow it (or it's something lower in the stack, it can be a
> desktop environment behavior).
> 
> What Thunderbird does differently I do not know, though when I click on
> a link in the Thunderbird 91.3.0, it passes the link to the opened
> Firefox and focuses the Firefox window, thus I cannot confirm your
> observation with the Thunderbird.
> Bye,
> Milan

Thanks, Milan. And thanks for your work on Evolution. It's a great email 
client, by far the best of the many that I have tried. 
___
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?

2021-12-14 Thread tim via evolution-list



On 12/14/21 9:31 AM, larry wrote:

On Mon, 2021-12-13 at 23:28 -0700, Tim Folger via evolution-list 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. This is the
default behavior in Thunderbird, for example. But when I click a link
in Evolution the desktop focus shifts to the browser instead of
remaining with Evolution. Is there any way to keep Evolution in focus
when clicking on links within emails? Thanks in advance for any
advice.

I'm running Ubuntu MATE 3.36.5-0ubuntu1 on Ubuntu MATE. I run Evolution
and Firefox in separate workspaces. When I click on a link in
Evolution, focus remains on Evolution, and I click on the workspace
that's running Firefox to get to the page.
Thanks for the suggestion. Unfortunately it didn't work for me. Even 
if I have Evolution and Web in separate workspaces when I click on a 
link in Evolution the focus shifts to Web in the other 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?

2021-12-14 Thread larry
On Mon, 2021-12-13 at 23:28 -0700, Tim Folger via evolution-list 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. This is the
> default behavior in Thunderbird, for example. But when I click a link
> in Evolution the desktop focus shifts to the browser instead of
> remaining with Evolution. Is there any way to keep Evolution in focus
> when clicking on links within emails? Thanks in advance for any
> advice.

I'm running Ubuntu MATE 3.36.5-0ubuntu1 on Ubuntu MATE. I run Evolution
and Firefox in separate workspaces. When I click on a link in
Evolution, focus remains on Evolution, and I click on the workspace
that's running Firefox to get to the page.

___
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


Re: [Evolution] Open links in the background?

2021-12-14 Thread Patrick O'Callaghan
On Tue, 2021-12-14 at 09:16 +0100, Milan Crha via evolution-list wrote:
> On Mon, 2021-12-13 at 23:28 -0700, Tim Folger via evolution-list
> wrote:
> > But when I click a link in Evolution the desktop focus shifts to
> > the
> > browser instead of remaining with Evolution.
> 
> Hi,
> I'm also not happy with that behavior, though I've been told, long
> time
> ago, that it had been requested by the designers or someone, thus the
> browsers follow it (or it's something lower in the stack, it can be a
> desktop environment behavior).
> 
> What Thunderbird does differently I do not know, though when I click
> on
> a link in the Thunderbird 91.3.0, it passes the link to the opened
> Firefox and focuses the Firefox window, thus I cannot confirm your
> observation with the Thunderbird.

That's not what happens here. If I click on a link, the page opens in a
new browser tab and Evolution doesn't lose focus. I'm running
KDE/Plasma (under Fedora), so this may be a Gnome issue.

poc
___
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?

2021-12-14 Thread Milan Crha via evolution-list
On Mon, 2021-12-13 at 23:28 -0700, Tim Folger via evolution-list wrote:
> But when I click a link in Evolution the desktop focus shifts to the
> browser instead of remaining with Evolution.

Hi,
I'm also not happy with that behavior, though I've been told, long time
ago, that it had been requested by the designers or someone, thus the
browsers follow it (or it's something lower in the stack, it can be a
desktop environment behavior).

What Thunderbird does differently I do not know, though when I click on
a link in the Thunderbird 91.3.0, it passes the link to the opened
Firefox and focuses the Firefox window, thus I cannot confirm your
observation with the Thunderbird.
Bye,
Milan

___
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] Open links in the background?

2021-12-13 Thread Tim Folger via evolution-list
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. This is the default behavior in Thunderbird, 
for example. But when I click a link in Evolution the desktop focus shifts to 
the browser instead of remaining with Evolution. Is there any way to keep 
Evolution in focus when clicking on links within emails? Thanks in advance for 
any advice.
___
evolution-list mailing list
evolution-list@gnome.org
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list