-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
distrobox: 1.7.2.1 -> 1.8.0 (#351291)
- Loading branch information
Showing
2 changed files
with
33 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
26 changes: 26 additions & 0 deletions
26
pkgs/applications/virtualization/distrobox/relative-default-icon.patch
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/distrobox-generate-entry b/distrobox-generate-entry | ||
index 65fcea0..8d57e4e 100755 | ||
--- a/distrobox-generate-entry | ||
+++ b/distrobox-generate-entry | ||
@@ -51,7 +51,7 @@ container_manager="autodetect" | ||
container_name_default="my-distrobox" | ||
delete=0 | ||
icon="auto" | ||
-icon_default="${XDG_DATA_HOME:-${HOME}/.local/share}/icons/terminal-distrobox-icon.svg" | ||
+icon_default="terminal-distrobox-icon" | ||
verbose=0 | ||
online=0 | ||
version="1.8.0" | ||
@@ -335,12 +335,6 @@ if [ "${icon}" = "auto" ]; then | ||
|
||
icon_url="$(echo "${DISTRO_ICON_MAP}" | grep "${container_distro}:" | cut -d':' -f2-)" | ||
|
||
- # Distro not found in our map, fallback to generic icon | ||
- if [ -z "${icon_url}" ]; then | ||
- icon_url="https://raw.githubusercontent.com/89luca89/distrobox/main/icons/terminal-distrobox-icon.svg" | ||
- container_distro="terminal-distrobox-icon" | ||
- fi | ||
- | ||
if [ -n "${icon_url}" ] && [ "${download}" != "null" ]; then | ||
icon_extension="${icon_url##*.}" | ||
|