SparkyLinux Forums

Software & hardware support => Desktops => Topic started by: 8bit on March 22, 2021, 01:22:58 AM

Title: [Solved] GUI Default Applications not setting default browser
Post by: 8bit on March 22, 2021, 01:22:58 AM
Set default browser with GUI app. No joy. Logged out/in, no joy
Edited prepend.csv, which I was gunna do anyway.
I could set it with update-alternitives.

(https://scrot.cloud/images/2021/03/21/default-www.png)

8bit
Title: Re: GUI Default Applications not setting default browser
Post by: paxmark1 on March 22, 2021, 06:58:41 PM
DE?

That info  does   kind of help
Title: Re: GUI Default Applications not setting default browser
Post by: 8bit on March 22, 2021, 07:17:11 PM
Bullseye - Minimal GUI (Openbox)

Thx. I hope that kind of helps,
8bit
Title: Re: GUI Default Applications not setting default browser
Post by: pavroo on March 22, 2021, 07:51:16 PM
After changing the prepend.csv, did you restart Openbox or logged out and loggin back?
Title: Re: GUI Default Applications not setting default browser
Post by: 8bit on March 22, 2021, 08:07:45 PM
Thanks for the reply. The error is independent of jgmenu. When xfce4-settings is installed "after the fact", it doesn't properly integrate itself. The GUI app  Default Applications only appears after installing xgce4-setttings. The error is reproduce-able, fresh install, apt update/full-upgrade, apt install xfec4-settings. apt install firefox.

Default Applactions -  set default web browser to firefox.
Log-out/in
Default Applications and update-alternatives shown:

(https://scrot.cloud/images/2021/03/22/error.png)

Thanks,
8bit
Title: Re: GUI Default Applications not setting default browser
Post by: 8bit on March 22, 2021, 08:18:26 PM
Also, changes to prepend.csv are immediate. No need to restart Openbox/log-out/in. The next time the menu is invoked, changes are shown. At least that's been my experience on several distros. I edit it mostly for appearance.

Thanks for Sparky.
8bit.
Title: Re: GUI Default Applications not setting default browser
Post by: pavroo on March 22, 2021, 08:40:52 PM
Setting a new web browser via xfce4-settings is stored localy for a logged user, for Xfce and here for Openbox only.
Setting a new web browser via update-alternatives is globaly and has to be done separetly.
Title: Re: GUI Default Applications not setting default browser
Post by: 8bit on March 23, 2021, 05:53:14 PM
^ And only update-alternatives changes the browser that gets invoked by the Openbox right-click menu. (Web)
That's what was confusing me. Most Openbox distros change the x-www-browser setting with xfce-settings dialog, so the main menu reflects that change.
(BunsenLabs - jgmenu, Mabox Linux - jgmenu, Monjaro Openbox - obmenu, Star Linux - obmenu, etc.)
But it doesn't have to, that's the dev's call. Have I got that right?

And that goes for the other defaults of the main menu, i.e. x-terminal?

Except File, that calls a script to decide what file manager is installed. So if a user had pcmanfm installed but the script found thunar first (it checks for thunar first), that's what would be called. So if a user wanted to change the file manager that gets called by the main menu, they would edit prepend.csv, or /usr/bin/sparky-fileopen, or?

TIA
Title: Re: GUI Default Applications not setting default browser
Post by: pavroo on March 23, 2021, 07:34:38 PM
I set the jgmenu to launch:
- system default w-www-browser instead of a specyfic we browser
- system default x-terminal-emulator instead of a specyfic terminal
so changing it globaly via update-alternatives lets you use them via jgmenu without editing jgmenu.
Title: Re: GUI Default Applications not setting default browser
Post by: 8bit on March 23, 2021, 08:02:18 PM
^ Thanks. That's succinct way of saying what I said. :) But doesn't answer the only real question asked, how to change the file manager called by jgmenu.

TIA

8bit
Title: Re: GUI Default Applications not setting default browser
Post by: pavroo on March 23, 2021, 09:08:20 PM
I think I lost.

prepend.csv calls a sparky script called "sparky-fileopen" which checks most file managers and loads the first installed from the list.
So simply change:
File,sparky-fileopen,system-file-manager
to any, for example pcmanfm:
PCManFM,pcmanfm,system-file-manager
Title: Re: GUI Default Applications not setting default browser
Post by: 8bit on March 24, 2021, 01:45:05 PM
Quote from: pavroo on March 23, 2021, 09:08:20 PM
I think I lost.

No contest to loose. Just a Sparky fan trying to figure out the Sparky Way of doing things. 8)

8bit