[Xfce-bugs] [Bug 14400] New: Replace which(1) with "command -v" in xinitrc.in

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Tue May 15 12:11:22 CEST 2018


https://bugzilla.xfce.org/show_bug.cgi?id=14400

            Bug ID: 14400
           Summary: Replace which(1) with "command -v" in xinitrc.in
    Classification: Xfce Core
           Product: Xfce4-session
           Version: 4.13.0
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Medium
         Component: General
          Assignee: xfce-bugs at xfce.org
          Reporter: leonid.isaev at jila.colorado.edu
                CC: benny at xfce.org, nick at xfce.org
  Target Milestone: Xfce 4.12

Currently the script xinitrc (placed to /etc/xdg/xfce4/xinitrc in ArchLinux)
called by startxfce4 depends in which(1). However, the script has #!/bin/sh
shebang, i.e. it's a POSIX sh script, which means that we can use the "command"
builtin. This has an advantage of reducing calls to external binaries and
remving which(1) dependency. Please consider this replacement, e.g. as in the
attached patch.

Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Xfce-bugs mailing list