{ "version": "https://jsonfeed.org/version/1.1", "user_comment": "This feed allows you to read the posts from this site in any feed reader that supports the JSON Feed format. To add this feed to your reader, copy the following URL -- https://matoken.org/blog/tag/path/feed/json -- and add it your reader.", "home_page_url": "https://matoken.org/blog/tag/path", "feed_url": "https://matoken.org/blog/tag/path/feed/json", "language": "ja", "title": "path – matoken's blog", "description": "Is there no plan B?", "icon": "https://matoken.org/blog/wp-content/uploads/2025/03/cropped-1865f695c4eecc844385acef2f078255036adccd42c254580ea3844543ab56d9.jpeg", "items": [ { "id": "http://matoken.org/blog/?p=2505", "url": "https://matoken.org/blog/2019/08/30/add-path-with-awesome-wm/", "title": "awesome wm\u3067\u30d1\u30b9\u3092\u8ffd\u52a0\u3059\u308b", "content_html": "
bash\u3060\u3068~/bin \u3068\u304b\u306b\u30d1\u30b9\u304c\u901a\u3063\u3066\u3044\u308b\u306e\u306bawesome\u304b\u3089mod4 +r \u3067\u8d77\u52d5\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u30b3\u30de\u30f3\u30c9\u304c\u898b\u5f53\u305f\u308a\u307e\u305b\u3093\uff0e
AppImage\u3084Flatpak\u306a\u3093\u304b\u306e\u30a2\u30d7\u30ea\u3092\u683c\u7d0d\u3057\u305f\u308a\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3053\u308c\u3060\u3068\u3000/home/user/bin/command \u3068\u304b\u30d5\u30eb\u30d1\u30b9\u3067\u66f8\u304b\u306a\u3044\u3068\u99c4\u76ee\u3067\u3059\uff0e
bash\u3060\u3068\u30d1\u30b9\u304c\u901a\u3063\u3066\u3044\u307e\u3059\uff0e
\n$ type -a MQTT-Explorer\nMQTT-Explorer is /home/matoken/bin/MQTT-Explorer\n$ ls -l /home/matoken/bin/MQTT-Explorer\nlrwxrwxrwx 1 matoken matoken 71 Aug 25 21:22 /home/matoken/bin/MQTT-Explorer -> /home/matoken/opt/AppImage/MQTT-Explorer-0.3.6-no-delete-limit.AppImage\n
awesome\u3067\uff0cmod4 + r \u3057\u3066 sh -c \"$PATH >> ~/tmp/awesomepath\" \u3068\u304b\u3057\u3066 PATH \u3092\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3068\u3053\u308c\u3060\u3051\u3057\u304b\u30d1\u30b9\u304c\u901a\u3063\u3066\u3044\u307e\u305b\u3093\uff0e
$ cat ~/tmp/awesomepath\n/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games\n
~/.xinitrc \u3067\u30d1\u30b9\u3092\u8ffd\u52a0\u3057\u3066\u307f\u307e\u3057\u305f\u304c\u53cd\u6620\u3055\u308c\u307e\u305b\u3093\uff0e
\n\u591a\u5206lightdm\u7d4c\u7531\u3067\u8d77\u52d5\u3057\u3066\u3044\u308b\u306e\u3067\u95a2\u4fc2\u306a\u304b\u3063\u305f\uff0e
$ ps auxf|grep -B3 awesome\nroot 32202 0.0 0.0 309612 5532 ? SLsl 8\u670829 0:00 /usr/sbin/lightdm\nroot 32208 1.2 0.5 430424 82396 tty7 Ssl+ 8\u670829 10:48 \\_ /usr/lib/xorg/Xorg :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch\nroot 32283 0.0 0.0 163604 5856 ? Sl 8\u670829 0:00 \\_ lightdm --session-child 12 21\nmatoken 32293 0.1 0.6 350760 99060 ? Ssl 8\u670829 1:18 \\_ awesome\n
~/.Xsession \u306b`PATH=$HOME/bin:$PATH` \u306e\u3088\u3046\u306a\u611f\u3058\u3067\u30d1\u30b9\u3092\u8ffd\u52a0\u3059\u308b\u3068\u30d1\u30b9\u304c\u901a\u308a\u307e\u3057\u305f\uff0e\u3067\u3082\u30d1\u30b9\u306e\u8ffd\u52a0\u3057\u304b\u66f8\u3044\u3066\u3044\u306a\u3044\u3068\u8272\u3005\u3068\u8d77\u52d5\u3057\u306a\u3044\u30b5\u30fc\u30d3\u30b9\u304c\u3042\u308a\u307e\u3059\uff0e
\n\u5927\u672c\u306e`/etc/X11/Xsession` \u3092cp\u3057\u3066\u304d\u3066\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u30d1\u30b9\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u305f\u3089OK\u3067\u3057\u305f\uff0e
$ cp /etc/X11/Xsession ~/.Xsession\n$ echo 'PATH=$HOME/bin:$PATH' >> ~/.Xsession\n
\u3053\u308c\u30d1\u30b9\u306e\u7ba1\u7406\u4e00\u7dd2\u306b\u3057\u305f\u3044\u3067\u3059\u306d\uff0e
\n$ dpkg-query -W awesome lightdm\nawesome 4.3-4\nlightdm 1.26.0-5\n$ lsb_release -dr\nDescription: Debian GNU/Linux bullseye/sid\nRelease: unstable\n$ uname -m\nx86_64\n