[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Disable DesktopPortal ?
[Thread Prev] | [Thread Next]
- 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] ----
Re: Disable DesktopPortal ? | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |