mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 06:07:00 +02:00
parent
e81a0e434a
commit
55b5622aae
3 changed files with 7 additions and 57 deletions
|
@ -1,40 +0,0 @@
|
|||
From 9816ebb3e6fd9f23e993b8b7fcbd56f92d9c9197 Mon Sep 17 00:00:00 2001
|
||||
From: Andrea Tarocchi <andrea.tarocchi@gmail.com>
|
||||
Date: Thu, 20 Feb 2020 22:01:04 +0100
|
||||
Subject: [PATCH] fixed #166: xdg-open dose not search correctly in directories
|
||||
with spaces in the name
|
||||
|
||||
---
|
||||
scripts/xdg-mime.in | 2 +-
|
||||
scripts/xdg-open.in | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/scripts/xdg-mime.in b/scripts/xdg-mime.in
|
||||
index 034d0ef..612d2ce 100644
|
||||
--- a/scripts/xdg-mime.in
|
||||
+++ b/scripts/xdg-mime.in
|
||||
@@ -307,7 +307,7 @@ search_desktop_file()
|
||||
|
||||
grep -l "$MIME;" "$dir/"*.desktop 2>/dev/null
|
||||
|
||||
- for f in $dir/*/; do
|
||||
+ for f in "$dir/"*/; do
|
||||
[ -d "$f" ] && search_desktop_file "$MIME" "$f"
|
||||
done
|
||||
}
|
||||
diff --git a/scripts/xdg-open.in b/scripts/xdg-open.in
|
||||
index 202f3e3..8de839a 100644
|
||||
--- a/scripts/xdg-open.in
|
||||
+++ b/scripts/xdg-open.in
|
||||
@@ -328,7 +328,7 @@ search_desktop_file()
|
||||
fi
|
||||
fi
|
||||
|
||||
- for d in $dir/*/; do
|
||||
+ for d in "$dir/"*/; do
|
||||
[ -d "$d" ] && search_desktop_file "$default" "$d" "$target"
|
||||
done
|
||||
}
|
||||
--
|
||||
GitLab
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
xdg-settings uses the ${parameter:offset} substring expansion,
|
||||
which is not available in posix shell
|
||||
|
||||
--- a/scripts/xdg-settings.in 2018-05-10 17:02:31.000000000 +0200
|
||||
+++ b/scripts/xdg-settings.in 2018-05-10 17:02:31.000000000 +0200
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/bin/sh
|
||||
+#!/bin/bash
|
||||
#---------------------------------------------
|
||||
# xdg-settings
|
||||
#
|
|
@ -1,18 +1,19 @@
|
|||
# Template file for 'xdg-utils'
|
||||
pkgname=xdg-utils
|
||||
version=1.1.3
|
||||
revision=5
|
||||
version=1.2.1
|
||||
revision=1
|
||||
build_style=gnu-configure
|
||||
make_check_target=test
|
||||
hostmakedepends="xmlto lynx"
|
||||
depends="bash xset"
|
||||
depends="xset"
|
||||
short_desc="Tools to assist applications with various desktop integration tasks"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
license="MIT"
|
||||
homepage="https://www.freedesktop.org/wiki/Software/xdg-utils/"
|
||||
changelog="https://cgit.freedesktop.org/xdg/xdg-utils/plain/ChangeLog"
|
||||
distfiles="https://portland.freedesktop.org/download/${pkgname}-${version}.tar.gz"
|
||||
checksum=d798b08af8a8e2063ddde6c9fa3398ca81484f27dec642c5627ffcaa0d4051d9
|
||||
changelog="https://gitlab.freedesktop.org/xdg/xdg-utils/-/raw/master/ChangeLog"
|
||||
distfiles="https://gitlab.freedesktop.org/xdg/xdg-utils/-/archive/v${version}/xdg-utils-v${version}.tar.bz2"
|
||||
checksum=93d510dccf328378f012fe195b4574c2fac1cd65a74d0852d6eaa72e5a2065a7
|
||||
make_check=no # tests are interactive and rely on system components
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE
|
||||
|
|
Loading…
Add table
Reference in a new issue