! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Replace which(1) with "command -v" in xinitrc.in
Status:
RESOLVED: DUPLICATE
Product:
Xfce4-session
Component:
General

Comments

Description Leonid Isaev 2018-05-15 12:11:22 CEST
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!
Comment 1 Leonid Isaev 2018-05-15 12:12:30 CEST
Created attachment 7730 
Patch to replace which(1) with "command" in xinitrc.in.in
Comment 2 Andre Miranda editbugs 2018-05-16 03:28:29 CEST

*** This bug has been marked as a duplicate of bug 14399 ***

Bug #14400

Reported by:
Leonid Isaev
Reported on: 2018-05-15
Last modified on: 2018-05-16

People

Assignee:
Xfce Bug Triage
CC List:
3 users

Version

Version:
4.13.0

Attachments

Additional information