Skip to content

Silence terminal warning on trashing files - #2837

Open
jeremypw wants to merge 8 commits into
mainfrom
jeremypw/fix-terminal-warning
Open

jeremypw wants to merge 8 commits into
mainfrom
jeremypw/fix-terminal-warning

Conversation

@jeremypw

@jeremypw jeremypw commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor
  • Check we have info before trying.
  • Avoid creating a local FileInfo object and using it in callback closure.
  • Do not check is admin again after earlier return if true.

@jeremypw
jeremypw requested a review from a team September 19, 2026 14:14
@jeremypw jeremypw added this to the 7.3.4 milestone Oct 6, 2026
Comment on lines +3776 to +3777
GLib.FileInfo inf;
dir.location.set_attributes_async.end (res, out inf);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
GLib.FileInfo inf;
dir.location.set_attributes_async.end (res, out inf);
dir.location.set_attributes_async.end (res, null);

@lenemter

lenemter commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

What warnings does this silence? I still get these:

** (io.elementary.files:99375): WARNING **: 21:28:02.703: plugin.vala:27: Error when getting information for file “/home/leo/Documents/wingpanel/.editorconfig”: No such file or directory

** (io.elementary.files:99375): WARNING **: 21:28:03.962: plugin.vala:27: Error when getting information for file “/home/leo/Documents/wingpanel/README.md”: No such file or directory

** (io.elementary.files:99375): WARNING **: 21:28:04.537: plugin.vala:27: Error when getting information for file “/home/leo/Documents/wingpanel/meson_options.txt”: No such file or directory

** (io.elementary.files:99375): WARNING **: 21:28:06.408: plugin.vala:27: No such file or directory

** (io.elementary.files:99375): WARNING **: 21:28:08.428: plugin.vala:27: No such file or directory

@jeremypw

Copy link
Copy Markdown
Contributor Author

@lenemter Thanks for the review. Did you install the PR? You need to do this when plugin code is changed.

@lenemter

Copy link
Copy Markdown
Member

Yes, I installed the PR and verified that the plugin files in /usr/lib/x86_64-linux-gnu/io.elementary.files/plugins/core have changed

@jeremypw

Copy link
Copy Markdown
Contributor Author

Hmm, you are right this no longer fixes the warning from plugin.vala:27. Another commit must have changed timing or something. Will redo.

@jeremypw
jeremypw marked this pull request as draft October 13, 2026 12:29
@jeremypw

Copy link
Copy Markdown
Contributor Author

Although looking at the diff maybe it was a different message to do with sort column rather than color tag? I am afraid I don't really remember now. Sorry, I should have documented it.

@jeremypw
jeremypw marked this pull request as ready for review October 13, 2026 12:54
@jeremypw
jeremypw requested a review from lenemter October 13, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants