mirror of
https://github.com/cascadium/wsl-windows-toolbar-launcher.git
synced 2026-04-27 05:25:50 +03:00
[GH-ISSUE #35] Custom j2-template seems not to be working #31
Labels
No labels
duplicate
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/wsl-windows-toolbar-launcher#31
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @NorseJedi on GitHub (Feb 18, 2021).
Original GitHub issue: https://github.com/cascadium/wsl-windows-toolbar-launcher/issues/35
I'm trying to make this use zsh rather than bash, and found a closed issue (#32) where it was explained you have to make use of a custom template for that. So I made this template where I only changed the first line:
I then run this command:
wsl-windows-toolbar -r ~/.zshrc -J ~/etc/wslmenu-template.sh.j2The output of the command indicates that the file is being used:
There are no errors in the output, just a warning about it not finding an icon-file for windows, which I assume isn't relevant.
However, the shortcut scripts created in
%USERPROFILE%/.config/wsl-windows-toolbar-launcher/metadata/do not reflect this, they're created with#!/bin/bash -iat the first line.@fquinner commented on GitHub (Feb 18, 2021):
Thanks yeah this looks like a bug. It will only work if values for both
-J(shell template) and-j(batch template) are provided - will need to fix that. In the meantime try providing both and it should work.@NorseJedi commented on GitHub (Feb 18, 2021):
Thank you, yes, that works :)