-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use our own bookmarks file #1010
base: master
Are you sure you want to change the base?
Conversation
Oops! I forgot to consider the case where the folder |
The new file is `~/.local/share/libfm-qt/bookmarks`. If it doesn't exist or is empty, as soon as a libfm-qt based app is launched, the GTK3 file `~/.config/gtk-3.0/bookmarks` will be consulted for backward compatibility, then the new file will be created and the GTK3 file will be ignored. Closes #1009 NOTE: The portal file dialogs will see the change after a reboot (or after restarting user portal services).
df4b49e
to
ca88a5f
Compare
Corrected now. |
Here it starts using the new bookmarks file only after adding/removing one, did even a relogin. One downside I see is that the GTK filedialog (example Gimp) doesn't show the actual bookmarks. So not really sure if we should use this, as we can't be sure our filedialog will be used everywhere atm. |
Yes, it does, but even before that, although the user may not notice it. Provided that You can check that by removing the folder |
As I said: No new file here that way
What about the gtk- filemanager issue? I think that's a showstopper, having different bookmarks in different apps/filedialogs, like gimp or libreoffice. |
That shouldn't be possible if you have a valid, non-empty
It isn't an issue but a "fix" (as I mentioned in #1009): A non-GTK app shouldn't affect GTK bookmarks. I remember that someone had complained about it a long time ago. |
That's why portals exist. |
Portal isn't working in libreoffice, gimp, shotwell and every other GTK app I tried, except firefox/thunderbird. |
I know. That's not our problem. Only by chance we used a GTK-only setting before this patch: a remnant of the GTK-based pcmanfm. As I said in #1009, even GTK4 seems to use the portal now. I don't think KDE/GNOME users ever complain about the difference between KDE and GTK bookmarks. They may only complain that this or that GTK/KDE app doesn't use KDE/GTK file dialog inside KDE/GNOME respectively. |
For me it's a regression, as I can't anymore update bookmarks shown in gtk filedialogs. If
We have that feature of shared bookmarks - why remove it? |
"Regression" has a definition far from that. This change breaks a "bad habit" ;)
For two reasons (already mentioned — they motivated making of the PR):
|
I'm pragmatic: regression is when something worked and after it doesn't anymore. For 2) Afaik the only GTK4 app which writes to bookmarks file in foreseeable future is nautilus, and it still writes to |
Not only However I look at it, changing the contents of a GTK3 config file seems like an old mistake. It should be corrected now. And I don't see any reason to care for apps that want to have their own file dialogs. This is Krita's — check its bookmarks: |
I imagine ourselves becoming like Wayland devs who talk for months before going forward ;) GNOME devs are at the other extreme and may talk only after the fact. Let's focus here on whether this PR does its job as intended, i.e., the review. Of course, I won't merge it if you or other members don't agree with the philosophy behind it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works as intended. If it's a good idea needs more discussion IMO. We are writing also to other gtk files (after setting a hook) in lxqt-appearance
.
An option "share bookmarks with GTK apps"?
I won't merge it without a discussion. But to me, it's inevitable; if not now, in future.
An overdoing, IMO. Sooner or later, we should say goodbye to such things. |
The new file is
~/.local/share/libfm-qt/bookmarks
. If it doesn't exist or is empty, as soon as a libfm-qt based app is launched, the GTK3 file~/.config/gtk-3.0/bookmarks
will be consulted for backward compatibility, then the new file will be created and the GTK3 file will be ignored.Closes #1009
NOTE: The portal file dialogs will see the change after a reboot (or after restarting user portal services).