Score:0

การติดตั้ง: คัดลอกสคริปต์ที่ไหนสักแห่งลงใน $PATH

ธง us

ฉันต้องการติดตั้ง ธีม polybar และที่พึ่งอย่างหนึ่งก็คือ networkmanager_dmenu ดังนั้นฉันต้องการติดตั้ง ฉันใช้ Ubuntu 20.04 และตัวเลือกที่ถูกต้องสำหรับฉันคือ: คัดลอกสคริปต์ไปที่ $PATH ฉันไม่มีความคิดเกี่ยวกับวิธีการใช้สิ่งนี้ ใครช่วยอธิบายให้ฉันได้ไหม

Score:1
ธง cn

PATH is an environmental variable that contains a list of directories where the system searches for an executable that matched a command. See here for more information. The contents can be seen in your terminal with the command

echo $PATH

In theory, you thus could have your install program look at the directories in there, and install it in one of the directories listed.

However, there are conventions on the use of directories. sbins directories are intended for system binaries, bin directories for all other executables. You thus will select a bin directory:

  • If you distribute your executable (your script) through the packaging system of your distribution, place it in /usr/bin. For Ubuntu, this means your software is packaged as a .deb installation file.
  • If your script is a custom installation script, then place your executable in /usr/local/bin. That directory is not managed by the packaging system of the operating system.
Score:-1
ธง au

ธีม Polybar สร้างขึ้นเพื่อทำงานร่วมกับตัวจัดการหน้าต่างเรียงต่อกัน เช่น dwm, bspwm, xmonad, i3 เป็นต้น โดยค่าเริ่มต้น ubuntu 20.04 จะมาพร้อมกับ gnome ซึ่งไม่ใช่ตัวจัดการหน้าต่างเรียงต่อกัน ดังนั้น polybar จึงไม่ทำงานกับเดสก์ท็อป Ubuntu ทั่วไป เว้นแต่คุณจะติดตั้งตัวจัดการหน้าต่างแบบเรียงต่อกันโดยเฉพาะ

Patrick Ziegler avatar
us flag
นี่ไม่เป็นความจริง. ในขณะที่หลายๆ คนกำลังใช้ polybar กับตัวจัดการหน้าต่างแบบเรียงต่อกัน มันจะทำงานบนตัวจัดการหน้าต่างใดๆ ที่ทำงานบนเซิร์ฟเวอร์ X
llesh avatar
au flag
@Patrick Ziegler ทำไมต้องลงคะแนน ฉันไม่เคยบอกว่า polybar ไม่ทำงานบนเซิร์ฟเวอร์ X ฉันบอกว่าถ้าผู้ใช้มีการติดตั้ง Ubuntu เป็นค่าเริ่มต้น polybar จะไม่ทำงานตามที่คาดไว้
Patrick Ziegler avatar
us flag
ฉันลงคะแนนเพราะคุณบอกว่า polybar ทำงานไม่ถูกต้องกับ WM ที่ไม่เรียงต่อกัน การที่ WM ใช้การเรียงต่อกันสำหรับหน้าต่างนั้นไม่มีผลต่อโพลีบาร์หรือไม่

โพสต์คำตอบ

คนส่วนใหญ่ไม่เข้าใจว่าการถามคำถามมากมายจะปลดล็อกการเรียนรู้และปรับปรุงความสัมพันธ์ระหว่างบุคคล ตัวอย่างเช่น ในการศึกษาของ Alison แม้ว่าผู้คนจะจำได้อย่างแม่นยำว่ามีคำถามกี่ข้อที่ถูกถามในการสนทนา แต่พวกเขาไม่เข้าใจความเชื่อมโยงระหว่างคำถามและความชอบ จากการศึกษาทั้ง 4 เรื่องที่ผู้เข้าร่วมมีส่วนร่วมในการสนทนาด้วยตนเองหรืออ่านบันทึกการสนทนาของผู้อื่น ผู้คนมักไม่ตระหนักว่าการถามคำถามจะมีอิทธิพลหรือมีอิทธิพลต่อระดับมิตรภาพระหว่างผู้สนทนา