Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/mit/ctwm/libexec Make this work with a non-standard...



details:   https://anonhg.NetBSD.org/src/rev/2c9f8036c807
branches:  trunk
changeset: 953218:2c9f8036c807
user:      nia <nia%NetBSD.org@localhost>
date:      Mon Mar 01 15:40:40 2021 +0000

description:
Make this work with a non-standard LOCALBASE.

diffstat:

 external/mit/ctwm/libexec/ctwm_app_menu |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r ad27a70a682b -r 2c9f8036c807 external/mit/ctwm/libexec/ctwm_app_menu
--- a/external/mit/ctwm/libexec/ctwm_app_menu   Mon Mar 01 13:52:50 2021 +0000
+++ b/external/mit/ctwm/libexec/ctwm_app_menu   Mon Mar 01 15:40:40 2021 +0000
@@ -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=""



Home | Main Index | Thread Index | Old Index