git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-gui desktop launcher

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Feb 6, 2024, 22:29 UTC
Message-ID
<ZcKy1GVhJDvl6N35@tapette.crustytoothpaste.net>
In-Reply-To
<e897282f-ac33-4f1e-903a-b6fb69e0c55e@googlemail.com>
On 2024-02-06 at 21:14:04, Tobias Boesch wrote:
Show 18 quoted lines
> 5 Feb 2024 23:29:10 brian m. carlson <sandals@crustytoothpaste.net>:
> 
> > It's not guaranteed that bash even exists on the system, let alone that
> > it's in /bin.  For example, this wouldn't work on most of the BSDs.
> > This would need to be templated using SHELL_PATH and written in POSIX
> > sh (e.g., no `[[`).
> >
> 
> I see. I'll try to look into it. If someone knows how to do that let me know.
> 
> >> Icon=/usr/share/git-gui/lib/git-gui.ico
> >
> > This would also need to be given an appropriate location based on the
> > build parameters.
> >
> 
> Is it about the build parameters of the build of git(-gui), or about the downstream distros are building?
> So git leaves this empty and the packagers full this out?

No, this would be built by a Makefile target. You'd provide a template file and adjust it based on something like the `RUNTIME_PREFIX` value, which is used to adjust locations for data.

There's examples for scripts, such as git-instaweb, which you can use as an example of how to generate a target file based on the input. This can also be used to work with `SHELL_PATH` as I mentioned above.

-- 
brian m. carlson (he/him or they/them)
Toronto, Ontario, CA
Previous: Tobias BoeschNext: Johannes Sixt
Message 8 of 11 in “git-gui desktop launcher”
  1. Tobias BoeschFeb 5, 2024
  2. brian m. carlsonFeb 5, 2024
  3. Junio C HamanoFeb 6, 2024
  4. Dragan SimicFeb 6, 2024
  5. Tobias BoeschFeb 12, 2024
  6. Dragan SimicFeb 12, 2024
  7. Tobias BoeschFeb 6, 2024
  8. brian m. carlsonFeb 6, 2024
  9. Johannes SixtFeb 6, 2024
  10. Marc BranchaudFeb 6, 2024
  11. Tobias BoeschFeb 12, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.