[Xfce-bugs] [Bug 14399] 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:09 CEST 2018


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

            Bug ID: 14399
           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

Created attachment 7729
  --> https://bugzilla.xfce.org/attachment.cgi?id=7729&action=edit
Patch to replace which(1) with "command" in xinitrc.in.in

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