TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Boxxy puts bad Linux applications in a box with only their files

182 点作者 icar9 个月前

15 条评论

Semaphor9 个月前
Lots of comments in the thread from February 2023: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=34730520">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=34730520</a>
demomode9 个月前
FYI. There is a XDG checker called &quot;xdg-ninja&quot;[1]<p>&gt; A shell script that checks your $HOME for unwanted files and directories.<p>&gt; When xdg-ninja encounters a file or directory it knows about, it will tell you whether it&#x27;s possible to move it to the appropriate location, and how to do it.<p>1. <a href="https:&#x2F;&#x2F;github.com&#x2F;b3nj5m1n&#x2F;xdg-ninja">https:&#x2F;&#x2F;github.com&#x2F;b3nj5m1n&#x2F;xdg-ninja</a>
评论 #41384581 未加载
notamy9 个月前
Oh this is my project! I haven’t had energy to work through pending issues for a while due to health reasons; I do still have interest in maintaining it but my health makes it a struggle.
评论 #41380087 未加载
评论 #41388493 未加载
blueflow9 个月前
From the README:<p><pre><code> It wants to put its config in ~&#x2F;.tmux.conf. With boxxy, you can put its config in ~&#x2F;.config&#x2F;tmux&#x2F;tmux.conf </code></pre> From tmux(1):<p><pre><code> By default, tmux loads the system configuration file from &#x2F;etc&#x2F;tmux.conf, if present, then looks for a user configuration file at ~&#x2F;.tmux.conf $XDG_CONFIG_HOME&#x2F;tmux&#x2F;tmux.conf or ~&#x2F;.tmux.conf. </code></pre> XDG_CONFIG_USER defaults to &quot;$HOME&#x2F;.config&quot;.<p>Very poor choice for an example.
评论 #41377683 未加载
评论 #41383122 未加载
评论 #41379765 未加载
评论 #41377959 未加载
评论 #41381643 未加载
yellowapple9 个月前
On a tangent: it bugs me that the default XDG directory structure doesn&#x27;t fully match the standard Linux directory structure. What&#x27;s with these inconsistent defaults?<p><pre><code> XDG_DATA_HOME=&quot;$HOME&#x2F;.local&#x2F;share&quot; # okay, reasonable XDG_CONFIG_HOME=&quot;$HOME&#x2F;.config&quot; # ...uh, pardon? XDG_STATE_HOME=&quot;$HOME&#x2F;.local&#x2F;state&quot; # well at least it&#x27;s in ~&#x2F;.local XDG_CACHE_HOME=&quot;$HOME&#x2F;.cache&quot; # ...but this one ain&#x27;t; what in tarnation? </code></pre> It&#x27;d make more sense to be consistent with how system-wide applications use &#x2F;usr or &#x2F;usr&#x2F;local, like so:<p><pre><code> XDG_DATA_HOME=&quot;$HOME&#x2F;.local&#x2F;share&quot; XDG_CONFIG_HOME=&quot;$HOME&#x2F;.local&#x2F;etc&quot; XDG_STATE_HOME=&quot;$HOME&#x2F;.local&#x2F;var&#x2F;lib&quot; XDG_CACHE_HOME=&quot;$HOME&#x2F;.local&#x2F;var&#x2F;cache&quot; </code></pre> This would make $XDG_(CONFIG|STATE|CACHE)_HOME consistent with $XDG_DATA_HOME, and also consistent with existing conventions around ~&#x2F;.local&#x2F;bin and ~&#x2F;.local&#x2F;lib.<p>The XDG spec ain&#x27;t the only naughty naughty boy here, either. Flatpak puts all of its application data in ~&#x2F;.var&#x2F;app, whereas it&#x27;d make a lot more sense in ~&#x2F;.local&#x2F;var&#x2F;lib&#x2F;flatpak&#x2F;app. And of course, the subject of Boxxy (and, as others mentioned, xdg-ninja) is the countless apps contributing further to the chaos.<p>Of course, all this would stop being an issue entirely if Linux would just embrace union mounts like Plan 9 did and overlay everything onto &#x2F;bin, &#x2F;lib, &#x2F;share, &#x2F;etc, and so on. Hell, if I were the not-so-benevolent dictator for life of the Linux ecosystem I&#x27;d take the opportunity to rename all those weird UNIX™ vestiges, too, like &#x2F;etc→&#x2F;conf and &#x2F;var→&#x2F;data - but if we&#x27;re gonna hang on to those vestiges, the least XDG could do is encourage consistency with them.<p>Maybe I just need to make my own distro and finally say goodbye to what little remains of my sanity.
asmor9 个月前
&gt; boxxy is a part of the amyware discord server.<p>Can we reverse this trend? I&#x27;ve recently started to see an FAQ, on GitHub, hide the answer with a deeplink into Discord channels where you needed to find the guild to join first. I&#x27;ve never gotten disinterested in a project that fast. This needs to stop.
评论 #41377789 未加载
评论 #41377893 未加载
评论 #41379522 未加载
评论 #41378721 未加载
评论 #41377779 未加载
HeatrayEnjoyer9 个月前
I don&#x27;t do drugs, mmm-nnn.
评论 #41376994 未加载
评论 #41379672 未加载
justinmarsan9 个月前
I don&#x27;t know if the reference was on purpose, but I now have this 13 years-old remix on repeat : <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=LHNZVAjadqY" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=LHNZVAjadqY</a>
评论 #41379158 未加载
dloss9 个月前
Related question: Which software do you recommend to sandbox a locally running AI agent, so that it can only access parts of the filesystem (e.g. one folder) and an allow-list of URLs?
评论 #41377772 未加载
评论 #41377215 未加载
评论 #41377072 未加载
评论 #41377575 未加载
评论 #41377935 未加载
qalmakka9 个月前
Isn&#x27;t this basically what `bubblewrap` already does?
评论 #41376891 未加载
评论 #41383585 未加载
评论 #41377673 未加载
评论 #41378411 未加载
评论 #41378896 未加载
eviks9 个月前
&gt; alias aws=&quot;boxxy aws&quot;<p>That&#x27;s rather inconvenient to alias ever app, is there a more ergonomic way to rewrite the file access calls?
INTPenis9 个月前
Is this like a better version of toolbx? Because I love toolbx and use it daily, but I wish it allowed for more granular configuration.<p>For example I&#x27;d want to create more containers for more specific use cases where they only have access to specific dirs in my HOME.
评论 #41377033 未加载
M95D9 个月前
GoboLinux users might be very interested.
cdelsolar9 个月前
OMG boxxy
eithed9 个月前
Love that the user name in examples is mistress
评论 #41377821 未加载