After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 758833 - File Operations requested from DBus should include a Timestamp to present the potential dialog
File Operations requested from DBus should include a Timestamp to present the...
Status: RESOLVED OBSOLETE
Product: nautilus
Classification: Core
Component: File and Folder Operations
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-11-30 11:10 UTC by Marco Trevisan (Treviño)
Modified: 2021-06-18 15:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add *WithTimestamp dbus methods for file operations that might open a dialog (13.54 KB, patch)
2015-11-30 11:11 UTC, Marco Trevisan (Treviño)
reviewed Details | Review

Description Marco Trevisan (Treviño) 2015-11-30 11:10:33 UTC
When calling File operations dbus API methods such as CopyURIs, CopyFile or EmptyTrash a dialog might be presented, but in order to get that properly focused those APIs should require the event timestamp.
Comment 1 Marco Trevisan (Treviño) 2015-11-30 11:11:02 UTC
Created attachment 316509 [details] [review]
Add *WithTimestamp dbus methods for file operations that might open a dialog

The dialog should be presented with event time in order to be properly
focused.
Comment 2 Carlos Soriano 2016-03-01 16:44:49 UTC
Comment on attachment 316509 [details] [review]
Add *WithTimestamp dbus methods for file operations that might open a dialog

Cosimo, can you take a look at this one?

This look like overkill to me, but I'm not aware where this dbus methods are used or why is a problem if there is no timestamp if you are using nautilus at that time.
Comment 3 Cosimo Cecchi 2016-03-02 03:22:43 UTC
Review of attachment 316509 [details] [review]:

I think a better way to do this might be to add another version of the interface (org.freedesktop.FileManager2) that has those methods with the new arguments - Nautilus could still expose both.
What do you think, Marco?
Comment 4 Marco Trevisan (Treviño) 2016-03-02 17:58:25 UTC
> I think a better way to do this might be to add another version of the
> interface (org.freedesktop.FileManager2) that has those methods with the new
> arguments - Nautilus could still expose both.
> What do you think, Marco?

Yeah, I do agree.
I did this to be a distro-patch initially, thus I didn't want to introduce a different interface, and I posted it here as a RFC mostly, but at this point I think it would be better to move these new methods to Filemanager2.

Any argument that could be useful instead of just the timestamp? Maybe it would be more versatile to use an 'a{sv}' argument that would support the same parameters that GAppLaunchContext supports?
Comment 5 Cosimo Cecchi 2016-03-02 18:50:22 UTC
(In reply to Marco Trevisan (Treviño) from comment #4)

> Any argument that could be useful instead of just the timestamp? Maybe it
> would be more versatile to use an 'a{sv}' argument that would support the
> same parameters that GAppLaunchContext supports?

Yeah, that's a good idea. Let's make it an a{sv} instead, that is much more future-proof!
Comment 6 Alberts Muktupāvels 2019-11-15 17:56:33 UTC
Marco, any plans to finish this?
Comment 7 Alberts Muktupāvels 2019-12-20 13:11:31 UTC
https://gitlab.gnome.org/GNOME/nautilus/merge_requests/504
Comment 8 André Klapper 2021-06-18 15:56:04 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org (resources are unfortunately quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version of Files (nautilus), then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/nautilus/-/issues/

Thank you for your understanding and your help.