Last active
September 4, 2025 06:37
-
-
Save ZaLiTHkA/f678ae3b73c0dfb93d1838ed49a9cc0d to your computer and use it in GitHub Desktop.
this file should be "sourced" into your current environment through something like `~/.bashrc` or `~/.zshrc`. then this Bash function must be run manually whenever JetBrains Toolbox updates an IDE.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # custom workaround for https://youtrack.jetbrains.com/issue/TBX-4599 | |
| source_path="$HOME/.local/share/JetBrains/Toolbox/scripts" | |
| custom_path="$HOME/.local/share/JetBrains/Toolbox/scripts-alt" | |
| export PATH="$PATH:$custom_path" | |
| function jb_wrapper_fix { | |
| if [[ ! "${PATH//:/ }" =~ "$custom_path" ]]; then | |
| echo "NOTE: custom launcher scripts folder is not currently in PATH.." | |
| fi | |
| if [[ ! -d "$custom_path" ]]; then | |
| echo "creating custom launcher scripts folder.." | |
| mkdir -p "$custom_path" | |
| fi | |
| for file in "$source_path/"*; do | |
| filename=$(basename "$file") | |
| echo "processing $filename.." | |
| cp "$file" "$custom_path/$filename" | |
| echo " &> /dev/null &" >> "$custom_path/$filename" | |
| done | |
| echo "custom launcher scripts updateed" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment