You are not logged in.
what i want:
when the File Picker is open (for example when i want to upload photos in gmail), it will be opened in the last path (folder) i used File Picker for.
what is happening now:
no matter where i go in File Picker and chose a file, when i get back into File Picker again, it is *always* opened in the Home folder.
in the past (couple of months ago) it remembered the last visited folder but for couple of months now this behavior has changed.
Last edited by andav (2023-12-03 16:53:06)
Offline
Try
gsettings set org.gtk.Settings.FileChooser startup-mode recent
Offline
Try
gsettings set org.gtk.Settings.FileChooser startup-mode recent
after this command, problem still exist.
Offline
How about
gsettings set org.gnome.desktop.privacy remember-recent-files true
And perhaps also
gsettings set org.gnome.desktop.privacy remember-app-usage true
Offline
@Head_on_a_Stick: Those settings all seem to be default.
@andav: I suggest running the commands @Head_on_a_Stick mentioned using 'get' instead of 'set' to see what the current values are instead of blindly setting them.
Offline
Those settings all seem to be default.
in the past (couple of months ago) it remembered the last visited folder but for couple of months now this behavior has changed.
^ That suggests the defaults have been changed. I suspect PEBKAC :-)
Offline
How about
gsettings set org.gnome.desktop.privacy remember-recent-files true
And perhaps also
gsettings set org.gnome.desktop.privacy remember-app-usage true
thanks again but problem still exist after those commands.
after those commands, when i get into file picker i now get into Recent folder (that's her name).
in the Recent folder there are all those files i picked before but i want to be in the folder that i picked the files from...
Last edited by andav (2023-12-03 21:25:50)
Offline
@andav: Thanks for completely ignoring my reply. I'll exit stage left..
Offline
@andav: Thanks for completely ignoring my reply. I'll exit stage left..
sorry.
i tried the first one with your suggestion first.
i got 'false' for:
gsettings get org.gnome.desktop.privacy remember-recent-files
then i set it to true.
for the second command i didn't check and just set it to true...
Last edited by andav (2023-12-03 21:27:46)
Offline
The location is primarily under the control of the specific application that launches the picker - that's not the same as the recently used files.
Also, since this seems to have recently changed for you: gtk3 => gtk4?
Offline
The location is primarily under the control of the specific application that launches the picker - that's not the same as the recently used files.
Also, since this seems to have recently changed for you: gtk3 => gtk4?
it seems that i have both gtk3 and gtk4 installed.
and also after you said this:
The location is primarily under the control of the specific application that launches the picker - that's not the same as the recently used files.
i tried firefox (i use google chrome regularly) and there, there is no problem at all.
it seems to get back into the last folder i used.
so the problem is with google chrome.
Last edited by andav (2023-12-04 00:17:59)
Offline
it seems that i have both gtk3 and gtk4 installed.
https://wiki.archlinux.org/title/Chromi … nd_support
chrome from the repos or a flatschpak?
Offline
it seems that i have both gtk3 and gtk4 installed.
https://wiki.archlinux.org/title/Chromi … nd_support
i'm on xorg.
chrome from the repos or a flatschpak?
google-chrome from AUR
Offline
The link shows how to use gtk4…
pacman -Qs portal
Offline
[EDIT bolow]
pacman -Qs portal
local/libportal 0.7.1-2
GIO-style async APIs for most Flatpak portals
local/libportal-gtk3 0.7.1-2
GIO-style async APIs for most Flatpak portals - GTK 3 backend
local/libportal-gtk4 0.7.1-2
GIO-style async APIs for most Flatpak portals - GTK 4 backend
local/xdg-desktop-portal 1.18.2-1
Desktop integration portals for sandboxed apps
local/xdg-desktop-portal-gtk 1.15.1-1
A backend implementation for xdg-desktop-portal using GTK
[EDIT]
where do i need to put:
--gtk-version=4
do i need to put it in the chrome.desktop file?
if yes, where in this file?
Last edited by andav (2023-12-04 12:56:26)
Offline
What if you get rid of all the portal stuff (certainly the implementation/s, libportal itself is probably some hard dependency somewhere)
Offline
i can't remove xdg-desktop-portal because it is a dependency for xdg-desktop-portal-gtk, which i need for something else (i cant remeber what was the problem without this package installed).
also i can't uninstall libportal and libportal-gtk4 because they are dependencies for nautilus.
libportal-gtk3 is a dependency for file-roller.
Last edited by andav (2023-12-04 13:07:13)
Offline
xdg-desktop-portal-gnome doesn't even show up in your previous post and is on the record for being complete fubar and nobody "needs" any portal for anything.
You could just remove it, see whether that has any impact on the situatuion and then at least know whether or not it's the cause and to be focused on.
Offline
xdg-desktop-portal-gnome doesn't even show up in your previous post and is on the record for being complete fubar and nobody "needs" any portal for anything.
You could just remove it, see whether that has any impact on the situatuion and then at least know whether or not it's the cause and to be focused on.
yes i was wrong.
i edited it to gtk...
Offline
well there is a progress but also a step back and now i know why i installed xdg-desktop-portal-gtk.
the progress:
after uninstalling xdg-desktop-portal-gtk the problem with the File Picker is SOLVED.
the step back:
without this package the dark theme of gnome is not complete.
some gnome applications revert back into light theme, for example:
nautilus and gnome settings.
also:
where do i need to put:
--gtk-version=4
do i need to put it in the chrome.desktop file?
if yes, where in this file?
Last edited by andav (2023-12-04 13:35:14)
Offline
chromium takes flags from ~/.config/chromium-flags.conf - no idea abotu google-chrome, though.
https://wiki.archlinux.org/title/GTK#Dark_theme_variant doesn't cut it for dark themes?
It seems completely insane that you've to configure a theme through xdg-portal
Offline
from the link you send i tried:
gsettings set org.gnome.desktop.interface color-scheme prefer-dark
and nothing has changed
i don't know where to put:
gtk-application-prefer-dark-theme = true
for gtk-3 apps.
Offline
$XDG_CONFIG_HOME/gtk-3.0/settings.ini - it's a couple of lines above.
But I'd not hold my breath, because those are most likely gtk4 applications.
There's also an environment variable, https://wiki.archlinux.org/title/GTK#GTK_3_and_GTK4
Offline
when i do:
nvim $XDG_CONFIG_HOME/gtk-3.0/settings.ini
i get empty file...
i have:
~/.config/gtk-3.0/
folder but there is no
settings.ini
in there.
for the environment variable, if i understand correctly i could also install from AUR:
libadwaita-without-adwaita-git
which replace libadwaita.
but after reboot gnome looks more ugly (i don't know how to describe it better) and the nautilus and gnome settings are still in light theme, so i revert back to libadwaita.
by the way thank you (and others here) very much for your help and patience :-)
Last edited by andav (2023-12-04 16:09:45)
Offline
You'd have to add that file (and the "[Settings]" group)
The environment has absolutely nothing to do w/ the alternative adwaita package, the latter is only relevant if you want to use something else than adwaita w/ gtk4.
Keep the regular libadwaita and try to export GTK_THEME=Adwaita:dark for the destined process.
Offline