Advertising

Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum Linuxiarze.pl

Author Topic: [Solved] GUI Default Applications not setting default browser  (Read 633 times)

Offline 8bit

  • Newbie
  • *
  • Posts: 27
  • Karma: 0
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.



8bit
« Last Edit: March 24, 2021, 11:26:37 pm by 8bit »

Offline paxmark1

  • Hero Member
  • *****
  • Posts: 841
  • Karma: 4
  • https://forum.sparkylinux.org/index.php/topic,4614
Re: GUI Default Applications not setting default browser
« Reply #1 on: March 22, 2021, 06:58:41 pm »
DE?

That info  does   kind of help
Search forum for "More info easier via inxi"    If requested -  no inxi, no help for you by  me.

Offline 8bit

  • Newbie
  • *
  • Posts: 27
  • Karma: 0
Re: GUI Default Applications not setting default browser
« Reply #2 on: March 22, 2021, 07:17:11 pm »
Bullseye - Minimal GUI (Openbox)

Thx. I hope that kind of helps,
8bit
« Last Edit: March 22, 2021, 07:19:48 pm by 8bit »

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2218
  • Karma: 4
    • SparkyLinux
Re: GUI Default Applications not setting default browser
« Reply #3 on: March 22, 2021, 07:51:16 pm »
After changing the prepend.csv, did you restart Openbox or logged out and loggin back?
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at irc.libera.chat

Offline 8bit

  • Newbie
  • *
  • Posts: 27
  • Karma: 0
Re: GUI Default Applications not setting default browser
« Reply #4 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:



Thanks,
8bit
« Last Edit: March 22, 2021, 08:14:43 pm by 8bit »

Offline 8bit

  • Newbie
  • *
  • Posts: 27
  • Karma: 0
Re: GUI Default Applications not setting default browser
« Reply #5 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.
« Last Edit: March 22, 2021, 08:31:08 pm by 8bit »

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2218
  • Karma: 4
    • SparkyLinux
Re: GUI Default Applications not setting default browser
« Reply #6 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.
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at irc.libera.chat

Offline 8bit

  • Newbie
  • *
  • Posts: 27
  • Karma: 0
Re: GUI Default Applications not setting default browser
« Reply #7 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
« Last Edit: March 23, 2021, 06:23:47 pm by 8bit »

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2218
  • Karma: 4
    • SparkyLinux
Re: GUI Default Applications not setting default browser
« Reply #8 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.
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at irc.libera.chat

Offline 8bit

  • Newbie
  • *
  • Posts: 27
  • Karma: 0
Re: GUI Default Applications not setting default browser
« Reply #9 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

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2218
  • Karma: 4
    • SparkyLinux
Re: GUI Default Applications not setting default browser
« Reply #10 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:
Code: [Select]
File,sparky-fileopen,system-file-managerto any, for example pcmanfm:
Code: [Select]
PCManFM,pcmanfm,system-file-manager
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at irc.libera.chat

Offline 8bit

  • Newbie
  • *
  • Posts: 27
  • Karma: 0
Re: GUI Default Applications not setting default browser
« Reply #11 on: March 24, 2021, 01:45:05 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