<div dir="ltr">Hi flo, OmegaPhil,<div><br><div>flo, thanks for the heads-up, I was aware of that and that's why I plan to avoid changing anything related to how Xfce handles tasks/jobs. My idea is to add something like a scheduler that will take care of when a Thunar job is run/created. After the creation of the job everything is left to the underlying systems. This should avoid problems with any other system also relying on Exo or any other underlying system.<br><br>OmegaPhil, I will certainly do that before I start working on the implementation. Thanks for this link/resource, I tried to find some file manager with that capability but wasn't able to.</div></div><div><br></div><div>Regards,</div><div>Stefan Mitic</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 27, 2015 at 10:58 AM <<a href="mailto:flo.xfce@gmx-topmail.de">flo.xfce@gmx-topmail.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Before you start rewriting Thunar or Exo jobs please be aware that these use deprecated API. Glib introducted GTask quite a while ago, and GTask has support for different priorities. Actually a lot of exo functionality is directly available in glib now (but not all of it).<br>
To be honest I am not convinced that any of the Xfce projects should implement different copy modes. This is OS or at least low-level library stuff. We just build a job, how this job is actually processed is not really our concern. Just my 2 cents.<br>
<br>
Kind regards<br>
<br>
-----Original Message-----<br>
Sent: Tuesday, 27 October 2015 ar 10:18:56<br>
From: "Stefan Mitić" <<a href="mailto:corcrash@gmail.com" target="_blank">corcrash@gmail.com</a>><br>
To: "Xfce development list" <<a href="mailto:xfce4-dev@xfce.org" target="_blank">xfce4-dev@xfce.org</a>><br>
Subject: Re: Thunar queued job execution<br>
Hi Alex,<br>
<br>
first of all thanks for the answer. I have looked into thread management<br>
already and there is currently no way to set thread priority in GLib, that<br>
functionality was remover a long time ago (commit it was removed in<br>
<<a href="https://git.gnome.org/browse/glib/commit/?id=51d92adeee67d1df30d13fe41e97af9e563f62ec" rel="noreferrer" target="_blank">https://git.gnome.org/browse/glib/commit/?id=51d92adeee67d1df30d13fe41e97af9e563f62ec</a>>)<br>
due to its unreliability. There is one way it could work right now but it<br>
would require (as far as I can tell) modifying "xfce/exo" which I would<br>
like to avoid as it is not used by just Thunar and might invoke problems<br>
with other peaces of Xfce using it.<br>
<br>
I will try and write a "job manager" over the next few days and commit it<br>
for review and approval.<br>
<br>
If you, or anyone else, have any ides on how to solve this differently I<br>
would appreciate any input.<br>
<br>
Regards,<br>
Stefan Mitic<br>
<br>
On Mon, Oct 26, 2015 at 8:15 PM Alex <<a href="mailto:acs82@gmx.de" target="_blank">acs82@gmx.de</a>> wrote:<br>
<br>
><br>
> Hi Stefan,<br>
><br>
> your solution-approach sounds ok, however I would solve the issue in a<br>
> different way:<br>
> I would add a "pause" and a "queue" button into the file-transfer-window<br>
> which pops up when tranfering/copying files, where "queue" = pause +<br>
> auto-wakeup when there is no other file-transfere running.<br>
><br>
> I quess there should be a way to pause thunar-jobs ? .. e.g. minimize<br>
> it's prio, so that it is not scheduled.<br>
><br>
> That should minimize thread-switching ... so the user would have the<br>
> full freedom to only queue single file-transfere operations on need.<br>
><br>
> Cheers,<br>
> Alex<br>
><br>
><br>
> On 26.10.2015 14:03, Stefan Mitić wrote:<br>
> > Hi everyone,<br>
> ><br>
> > I am trying to implement the following functionality into Thunar:<br>
> > <a href="https://bugzilla.xfce.org/show_bug.cgi?id=12123" rel="noreferrer" target="_blank">https://bugzilla.xfce.org/show_bug.cgi?id=12123</a><br>
> ><br>
> > The way I understand it the only way to do this would be to create a new<br>
> > class "Thunar job manager" that will take over the management of Thunar<br>
> > jobs and their execution, that way we would be able to have control over<br>
> > the order of execution of jobs.<br>
> ><br>
> > My question is what do you think about this approach and do you have any<br>
> > other ideas to implement this behavior?<br>
> ><br>
> > Best regards,<br>
> > Stefan Mitic<br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Xfce4-dev mailing list<br>
> > <a href="mailto:Xfce4-dev@xfce.org" target="_blank">Xfce4-dev@xfce.org</a><br>
> > <a href="https://mail.xfce.org/mailman/listinfo/xfce4-dev" rel="noreferrer" target="_blank">https://mail.xfce.org/mailman/listinfo/xfce4-dev</a><br>
> ><br>
><br>
> _______________________________________________<br>
> Xfce4-dev mailing list<br>
> <a href="mailto:Xfce4-dev@xfce.org" target="_blank">Xfce4-dev@xfce.org</a><br>
> <a href="https://mail.xfce.org/mailman/listinfo/xfce4-dev" rel="noreferrer" target="_blank">https://mail.xfce.org/mailman/listinfo/xfce4-dev</a><br>
_______________________________________________<br>
Xfce4-dev mailing list<br>
<a href="mailto:Xfce4-dev@xfce.org" target="_blank">Xfce4-dev@xfce.org</a><br>
<a href="https://mail.xfce.org/mailman/listinfo/xfce4-dev" rel="noreferrer" target="_blank">https://mail.xfce.org/mailman/listinfo/xfce4-dev</a><br>
_______________________________________________<br>
Xfce4-dev mailing list<br>
<a href="mailto:Xfce4-dev@xfce.org" target="_blank">Xfce4-dev@xfce.org</a><br>
<a href="https://mail.xfce.org/mailman/listinfo/xfce4-dev" rel="noreferrer" target="_blank">https://mail.xfce.org/mailman/listinfo/xfce4-dev</a></blockquote></div>