Search Debian Channel Logs

Sunday, January 29, 2017

#debian channel featuring it0, jolt, RickHull, somiaj, noober, [jasper],

RickHull 2017-01-29 11:17:38
Hi, I am trying to figure out why hexchat opens links in firefox, when /etc/alternatives/x-www-browser is set to chromium
RickHull 2017-01-29 11:18:05
i've gone through the hexchat config menus
jolt 2017-01-29 11:20:32
Maybe you window manager has its own config for that?
jolt 2017-01-29 11:20:41
RickHull: ^
RickHull 2017-01-29 11:20:42
using openbox
RickHull 2017-01-29 11:20:55
so far, setting x-www-browser has been sufficient for everything but hexchat
RickHull 2017-01-29 11:21:11
let me check the openbox configs, thx
jolt 2017-01-29 11:21:16
RickHull: xdg-mime default firefox text/html ?
jolt 2017-01-29 11:21:30
or whatever browser you want there
[jasper] 2017-01-29 11:21:37
hej guys, what's up with the weird s / S in file permissions....setting 0755 on a fle also gives it s ...
[jasper] 2017-01-29 11:21:52
how can I just assign drwxr-xr-x recurisvely to a directory?
RickHull 2017-01-29 11:22:18
aha! thanks jolt; xdg-mime query default text/html #=> iceweasel.desktop
jolt 2017-01-29 11:22:25
awesum
RickHull 2017-01-29 11:22:35
can I set this permanently (survive reboot)?
RickHull 2017-01-29 11:23:30
also my gnome-www-browser is set to iceweasel I see. could that be related? doubtful
jolt 2017-01-29 11:23:45
[jasper]: there is something called setuid, which is good for when you have multuple users on the box that should inherit files they create. You can google that if you want more info about the sS. Otherwise you can do "find /path -type d -exec chmod 0755 {} \;" to change all directories to 755
jolt 2017-01-29 11:24:00
RickHull: I assume that is per user and would survive reboots
jolt 2017-01-29 11:24:21
[jasper]: but please dont do it on system dirs
jolt 2017-01-29 11:24:38
[jasper]: as those has lots of custom permission for the system to work
[jasper] 2017-01-29 11:24:59
jolt, actually assigning 0755 still hands out sticky bit?
jolt 2017-01-29 11:25:13
[jasper]: it's the parent dir that does that
RickHull 2017-01-29 11:25:16
jolt, oh hm, I was root when I ran the xdg-mime query. funnily as my user, it returns wine-extension-htm.desktop
RickHull 2017-01-29 11:25:28
i'm not sure that's what's triggering hexchat's URL handler
jolt 2017-01-29 11:25:48
RickHull: probably a nice mix of precedence in that. if you do export BROWSER='something' it might override all of it.
jolt 2017-01-29 11:26:13
RickHull: I would guess it depends on the framework of it, or its own config file
RickHull 2017-01-29 11:26:37
i'm guessing it's somewhere in the system or user xml for openbox
RickHull 2017-01-29 11:26:48
thx for the info, digging
somiaj 2017-01-29 11:27:14
RickHull: it might be done via xdg-open
jolt 2017-01-29 11:27:49
somiaj: That is why I told him about xdg-mime default :)
jolt 2017-01-29 11:27:58
Well, time to sleep here, good night!
RickHull 2017-01-29 11:28:07
not seeing firefox or iceweasel in any openbox configs :(
RickHull 2017-01-29 11:28:36
aha! xdg-open uses firefox
RickHull 2017-01-29 11:29:12
shouldn't it use the value of x-www-browser?
somiaj 2017-01-29 11:29:32
RickHull: it is set via .desktop files
RickHull 2017-01-29 11:29:41
where can I look?
somiaj 2017-01-29 11:29:48
RickHull: man xdg-open
somiaj 2017-01-29 11:30:16
though jolt suggestion of xdg-mime will set it
RickHull 2017-01-29 11:30:18
how does it know the default browser?
RickHull 2017-01-29 11:30:36
my xdg-mime text/html is some wine thing
RickHull 2017-01-29 11:30:41
so i don't think that controls it
somiaj 2017-01-29 11:30:48
there is a default-browser setting
RickHull 2017-01-29 11:31:38
nothing about that in man xdg-open or xdg-mime
somiaj 2017-01-29 11:32:06
one second, I haev to look it up. I rarely use these tools
RickHull 2017-01-29 11:32:18
no worries, any help is appreciated
RickHull 2017-01-29 11:32:27
i just don't know where to look to find this setting
RickHull 2017-01-29 11:32:47
there is a xdg-settings program...
RickHull 2017-01-29 11:33:08
ok, i'm making some headway :)
somiaj 2017-01-29 11:33:12
xdg-settings get default-web-browser
somiaj 2017-01-29 11:33:18
and set to point it at a .desktop file
RickHull 2017-01-29 11:34:07
ah, i guess the .desktop specification prevents an easy hookup to /etc/alternatives
RickHull 2017-01-29 11:34:13
le sigh
RickHull 2017-01-29 11:34:15
thanks!
somiaj 2017-01-29 11:34:48
yea xdg is all about .desktop files since that is the specification it sues
RickHull 2017-01-29 11:35:07
i think there could "easily" be a shim to help the defaults
RickHull 2017-01-29 11:35:24
in a perfect world
somiaj 2017-01-29 11:36:03
sure, but then you run into two seperate systems, the alternative system was a debian thing before xdg started to unify things. Desktops and desktop applications more often than not are sticking to this open standard that is distro independent
somiaj 2017-01-29 11:36:23
the old debian menu system has been depricated in favor of the xdg menus for instance
it0 2017-01-29 11:36:48
good nigth everyone
RickHull 2017-01-29 11:36:56
yeah, it's definitely not easy, or even necessarily a good or tractable idea
somiaj 2017-01-29 11:37:55
RickHull: so unforntually not everything is modified to use the altnerative system.
RickHull 2017-01-29 11:38:38
yeah, and I'm sure it's a big maintenance burden to try to patch everything
RickHull 2017-01-29 11:41:00
it's not clear whether xdg-settings will persist
RickHull 2017-01-29 11:41:17
i assume it must read and write to a file on the filesystem in order to do so. which one?
RickHull 2017-01-29 11:42:15
i'm used to the model where you can make temp changes via commands, but you have to edit a file for persistence. where commands make persistent changes, it should be made obvious
somiaj 2017-01-29 11:43:18
RickHull: it will unless you wipe out the config file in $HOME for that user
RickHull 2017-01-29 11:43:51
i grepped all the config files i know about in $HOME and /etc for iceweasel and can't find it
RickHull 2017-01-29 11:44:09
but i probably just haven't looked in the right spot yet
somiaj 2017-01-29 11:44:36
RickHull: .local or .share somethign like that
somiaj 2017-01-29 11:44:49
RickHull: grr, .config
noober 2017-01-29 11:44:54
test
RickHull 2017-01-29 11:44:59
yeah i'm in ~/.config poking around now
somiaj 2017-01-29 11:45:07
RickHull: anyways if you read the xdg specifications it should tell you where things should be located.