Make this work with a non-standard LOCALBASE.
This commit is contained in:
parent
7f60398120
commit
b68ad6c318
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
# $NetBSD: ctwm_app_menu,v 1.2 2020/10/12 11:07:24 nia Exp $
|
||||
# $NetBSD: ctwm_app_menu,v 1.3 2021/03/01 15:40:40 nia Exp $
|
||||
#
|
||||
# Copyright (c) 2020 The NetBSD Foundation, Inc.
|
||||
# All rights reserved.
|
||||
|
@ -28,13 +28,14 @@
|
|||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
LOCALBASE=$(pkg_info -Q LOCALBASE pkg_install 2>/dev/null || echo /usr/pkg)
|
||||
OFS=$IFS
|
||||
IFS='
|
||||
'
|
||||
printf 'menu "appmenu"\n'
|
||||
printf '{\n'
|
||||
printf '\t"Applications"\tf.title\n'
|
||||
for app in $(find /usr/pkg/share/applications -name '*.desktop');
|
||||
for app in $(find $LOCALBASE/share/applications -name '*.desktop');
|
||||
do
|
||||
name=""
|
||||
exec=""
|
||||
|
|
Loading…
Reference in New Issue