I want to debug a program's behaviour when the user has no default web browser set, but I'm not sure how I'd return to this state after setting one. I know that I can set my default browser via xdg-settings set default-web-browser <value>, but what if I want to unset it, i.e., make it so that I don't have a default browser?

So far I've tried running

$ xdg-settings set default-web-browser ''

Which resulted in

xdg-settings: no parameter value given

I also tried

$ xdg-settings set default-web-browser ' '

Which resulted in

xdg-settings: invalid application name

I'm using a minimal installation of Alpine Linux running i3 in X.Org.

  • xdg-settings set default-web-browser ""? – Artem S. Tashkinov Nov 22 '20 at 9:04
  • @ArtemS.Tashkinov I tried that, but it complains about no value being given. – Newbyte Nov 22 '20 at 9:20
  • @Newbyte please edit your question and update with what is your environment, what you have tried so far and what is the exact result you have seen. – thanasisp Nov 22 '20 at 9:39
  • @thanasisp Does that look good? – Newbyte Nov 22 '20 at 10:18
  • You could also add the error message you get, especially if it was xdg-settings: invalid application name which means xdg-settings checks for existence of the value, into where it should exist (some /usr/share/ or ~/.local/chare or ~/.config etc) – thanasisp Nov 22 '20 at 11:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.