This is mnoGoSearch's cache of https://lists.gambas-basic.org/archive/user/2024-03/0000311.html. It is a snapshot of the page as it appeared during last crawling. The current page could have changed in the meantime.

Last modified: Sat, 23 Mar 2024, 23:21:02 CET    Size: 4429
Disable DesktopPortal ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Disable DesktopPortal ?

  • Subject: Disable DesktopPortal ?
  • From: T Lee Davidson <t.lee.davidson@xxxxxxxxx>
  • Date: Sat, 23 Mar 2024 16:49:27 -0400
  • To: user@xxxxxxxxxxxxxxxxxxxxxx

Benoît,

Would it be possible to have a boolean Property in Desktop.class that allows to disable the use of DesktopPortal?

I ask because I find the behavior of the xdg-desktop-portal to be quite annoying. A right-click on the project file tree to "Open in file manager..." opens the project directory in Visual Studio Code instead of Dolphin. (It may actually be the fault of xdg-desktop-portal-kde.) And for the life of me, I cannot find where that preference is stored to reset it.

Using gb.Desktop in a project to open a simple text file opens the Discover (plasma-discover) Choose Application dialog. Non-sandboxed applications should not have this problem.


I see DesktopPortal is also used for sending mail, so it couldn't be applied globally. But maybe as such:
[code]
Static Public Sub {Open}(Url As String, Optional {Wait} As Boolean)

  Url = File.RealPath(Url)

  If UseDesktopPortal And If DesktopPortal.Available Then
    DesktopPortal.OpenURI(Url)
  Else
    Main.RunXdgUtil("xdg-open", [Url], {Wait})
  Endif

End
[/code]

Thanks for any consideration of which you may deem this request worthy.

--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----


Follow-Ups:
Re: Disable DesktopPortal ?Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>