Can’t read the directory, the syscall fails with EISDIR
Can’t read the directory, the syscall fails with EISDIR
XDG portal filechooser for Firefox: the KDE implementation uses Dolphin, which is full of features and I use most of them; the default GTK one is mildly infuriating to use and looks ugly too, but getting the browser to use the portal I want was a nightmare - especially since GTK discontinued the GTK_USE_PORTAL envvar.
The related Firefox config entries make no sense either.
I have reasons to believe the depicted woman does want a body cavity search…
Here it is:
#!/usr/bin/zsh
nl=$'\n'
dnl=$'\n\n'
url=$1
msgcontent=$url; shift
argi=1
for arg ($@); do
argi=$(($argi + 1))
msgcontent=${msgcontent}${nl}Argument\ ${argi}': '${arg}
done
title="${0:A}"
msg="An application attempted to open a web page:${dnl}\"${msgcontent}\"${dnl}Copy the URL to clipboard?"
kdialog --title $title --yesno $msg
answer=$?
if [[ $answer = 0 ]]; then wl-copy $url; fi
If you want to translate it to Bash, keep in mind that arrays behave differently between the two shells, and syntax like for arg ($@); do
would likely misbehave or not work at all.
Also, there’s an issue where some applications do something weird, and the URL seems to be a zero-length argument. I have absolutely no idea what’s up with that.
You can set some browser-unrelated program or script as your desktop environment’s default browser, for example I wrote a Zsh script that creates a KDE dialog and asks me to copy the URL to the clipboard.
I’m not currently at my PC, but if you want it I can paste it in a comment here when I get to it - it shouldn’t be too hard to translate it to Bash, either.
Other than that? /usr/bin/true
is a pretty nice default browser for applications to start without your consent, very minimal and lightweight.
No, that’s Vim
Spaces between paragraphs should work, you have to use two new lines for them.
They seem to work on my instance’s web interface and on Jerboa…
Tip:
you can replace your periods with three dashes to get a horizontal separator, which I think is what you were going for. It’s markdown syntax, it should work for most clients.
Huh, the 3 letters on the right seem to use a different font, I wonder why that may be…
Java²script
No harm in asking, nw:
The first one that comes to mind is Fortnite, it has been used for advertising Halo and Star Wars, at least I think those were sponsors veiled as simple crossovers but I’m sure they’re not the only sponsors/crossovers.
Though, mostly I was refering to almost every live-service game as of late, if you count “please check out the shop and buy these new skins” as advertisements. They’re not being paid by third parties to deliver them, but they sure were as annoying as TV ads when I experienced them…
The latest example I can think of is Sea Of Thieves, where I still haven’t fully figured out how menus work because sometimes half of the screen points you to some kind of shop.
I wish all games were free of commercials…
Lunacid, great lil’ game until you decide to try and get all the achievements.
The one thing I don’t really like is how all of the world building is more or less inavlidated by the classic “it’s just a dream bro”.
Yes, the dreamer is supposedly an eldritch being, but I’d like to appreciate all the tiny little lore connections you can find without the looming threat of “this doesn’t make sense because it’s all a dream”.
Like with skeletons.
Why skeletons?
All enemies in the game have some sort of explaination, from the simple “this is a fog beast” to “holy knights cursed themselves and became abominable horses, tainting vampire cattle and turning their captors into the puddle of harm that currently stands in your way”.
But skeletons?
They don’t have any explaination, unlike the mummies of the Temple of Silence - they’re just nondescript undead enemies where undead enemies thematically fit. The dreamer put them there, because it’s a dream.
0.0
Yeah, I posted it first on Reddit on r/ProgrammerHumor and saw it reposted on r/196 (got way more upvotes there), then I reposted it here myself when Reddit did the Reddit and I moved here.
Tbf it is a good meme…
I didn’t think it would be reposted so many times when I made it *^*
Nah, it’s just that /proc
is incorrect - it contains information about running processes, as well as kernel data structures as visible by the process reading them.
Wdym? flamingo_pinyata’s explaination was quite useful, I wish somebody had told me that long ago and it’s still going to let me save so much time.
I’ve used Windows for a bit more than a decade, and I only found out its VFS is case-insensitive (by default) after I fully ditched the OS, when a bunch of Electron applications created directories with different cases - nothing ever broke because of it, save for a single Godot game.
Personally, I think case-insensitivity seldom makes sense, though I’m also aware that not everyone [knows how / is able] to properly operate a keyboard.
I think GNOME’s filechooser is the GTK one (never used it so I’m not sure), mine looks like this:
It’s entirely possible that Firefox changed and now uses XDG portals by default, I configured it like this a long time ago.
As for how to configure it, I honestly don’t know.
It was a combination of messing with
widget.use-xdg-desktop-portal
on about:config, and changing XDG envvars and dotfiles; both by following several conflicting Reddit and bbs.archlinux.org posts.