GNOME Bugzilla – Bug 777283
Set parameters for executing the binary of a project
Last modified: 2018-01-11 10:15:57 UTC
It would be helpful if there is the possibility to set parameters in the project preferences which are passed to the binary when it is executed. Like "example -i test"
This would indeed be nice to have.
Maybe there could be an additional option, like ask always before execution. When executing the project this would bring up a text box for entering the parameters, prefilled with the last ones. This would make it easier to try different parameters while debugging.
(In reply to Peter Sonntag from comment #2) > Maybe there could be an additional option, like ask always before execution. I mean this in the politest way possible: No. :) > When executing the project this would bring up a text box for entering the > parameters, prefilled with the last ones. We do eventually need UI for selecting the IdeBuildTarget to execute. Currently, we just try to discover the most likely one. I imagine we'll extend that UI for custom arguments. But I'd like to see this persisted to the underlying IdeConfiguration (or similar). > This would make it easier to try different parameters while debugging. Testing with a wide variety of input is probably best left to the command line or by the executing application asking for input. I'd rather avoid complicating Builder's UI for a small percentage of use cases when the terminal is an equally good UI.
I understand your point. As I'm not that experienced, could you give me an hint where the binary is? I was not able to find it.
We try to do builds out-of-tree by default, so they will be in a directory like ~/.cache/gnome-builder/builds/$project/$runtime/$device/. It would be nice if we had a variable to simplify jumping there, like $builddir or something.
Maybe a stupid idea, but what about a symlink?
It's essentially the same problem that this (long) thread discusses. https://mail.gnome.org/archives/desktop-devel-list/2016-February/msg00070.html Coming up with a good strategy wasn't exactly clear.
For posterity, we do support run arguments when using flatpak. You can set the "x-run-args" parameter in the .json flatpak manifest. We still need something better once we have some real project manipulation infrastructure.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-builder/issues/168.