Newbie with thunar bug.

Steve Dodier-Lazaro sidnioulz at gmail.com
Fri Nov 21 20:05:53 CET 2014


So if I understand well, the file (as represented by the kernel) is
ok, but the GIO objects are not. Correct?

Is there any operation performed on the file when the copy finishes
that could make the GFile object invalid, or the GFileInfo structure?

Could it be that the writing hasn't been finished yet by the kernel
when g_file_query_info is called, and that a flush is needed
somewhere?

2014-11-20 16:18 GMT+00:00 Román <rgmf at riseup.net>:
> Hi,
>
> I think is not a refreshment problem. The copy of the files is ok but when you see file size in the file properties it is wrong. I could see that the problem is in thunar_file_load here:
>
> /* query a new file info */
> file->info = g_file_query_info (file->gfile,
>                                 THUNARX_FILE_INFO_NAMESPACE,
>                                 G_FILE_QUERY_INFO_NONE,
>                                 cancellable, &err);
>
> I added this stdio functions for testing:
>
> fseek(fp, 0L, SEEK_END);
> sz = ftell(fp);
>
> and this gave me the correct size.
>
> Anyway I continue struggling with this bug.
>
> Cheers.
> Román (aka rgmf).
>
> On Wed, 19 Nov 2014 16:01:39 +0000
> Steve Dodier-Lazaro <sidnioulz at gmail.com> wrote:
>
>> Hi Román,
>>
>> Reloading a folder occurs when you click on 'View -> Reload' or press
>> 'Ctrl+R'. If the problem is just a refreshment problem, reloading the
>> folder should handle it indeed. However, isn't there a function for
>> just reloading a file and the status bar that displays its size? Can
>> you identify (maybe using breakpoints) how the copied files (except
>> the last one which triggers the bug) are refreshing as part of the
>> file copy operation?
>>
>> Cheers,
>>
>> 2014-09-29 17:12 GMT+01:00 Román <rgmf at riseup.net>:
>> > Hello.
>> >
>> > I am looking at 9446 bug (https://bugzilla.xfce.org/show_bug.cgi?id=9446) and deeping in thunar code.
>> >
>> > It is a strange bug because if you navigate to other directory and back to target directory the sizes of files are okay so I ask myself: What is the difference between reload folder and open to a folder? I have been able to see that:
>> > - When you open a folder thunar_folder_reload is called.
>> > - When you reload a folder thunar_folder_reload is called.
>> >
>> > Can someone help me with this? Any hint?
>> >
>> > Thank you.
>> > Cheers.
>> >
>> > --
>> > Román <rgmf at riseup.net>
>> > _______________________________________________
>> > Xfce4-dev mailing list
>> > Xfce4-dev at xfce.org
>> > https://mail.xfce.org/mailman/listinfo/xfce4-dev
>>
>>
>>
>> --
>> Steve Dodier-Lazaro
>> PhD Student in Information Security
>> University College London
>> Free Software Developer
>> OpenPGP : 1B6B1670
>> _______________________________________________
>> Xfce4-dev mailing list
>> Xfce4-dev at xfce.org
>> https://mail.xfce.org/mailman/listinfo/xfce4-dev
>
> --
> Román <rgmf at riseup.net>
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> https://mail.xfce.org/mailman/listinfo/xfce4-dev



-- 
Steve Dodier-Lazaro
PhD Student in Information Security
University College London
Free Software Developer
OpenPGP : 1B6B1670


More information about the Xfce4-dev mailing list