Skip to content
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

File selector suggestions #22

Closed
danboid opened this issue Jan 10, 2023 · 16 comments
Closed

File selector suggestions #22

danboid opened this issue Jan 10, 2023 · 16 comments

Comments

@danboid
Copy link
Contributor

danboid commented Jan 10, 2023

I'd like to see the fluida file selector get a few tweaks:

  • There doesn't currently seem to be a way to quickly jump to and browse the parent directory, either being able to click on a double dot icon or an up icon next to the path dialog.

  • If the places column is going to remain as-is, please add /usr/share/sounds/sf2 as one of the default paths as this is where Debian and Ubuntu store their soundfonts.

  • I'd rather see places replaced by a list of bookmarked paths. Users would be able to drag n' drop dirs into that column for quick access to specific paths.

  • It would be nice if the path dialog was editable so paths could be entered manually instead of having to use the mouse to browse to them.

@brummer10
Copy link
Owner

Hi
Thanks for the Suggestion. I'll think about If or how I could include them. To Point one, you could Go to the parent directory with the mousewheel or do a right click on the address, that will Pop Up a Menu with the parent directorys.

@danboid
Copy link
Contributor Author

danboid commented Jan 10, 2023

Thanks for considering my suggestions Hermann! I've not made proper use of it yet but this is a very useful, easy to use and install plugin.

@danboid
Copy link
Contributor Author

danboid commented Jun 11, 2023

I've not been able to work out where fluida/Cairo gets its list of Places (paths) to show in the file open window so as a workaround until this gets fixed I've created a symbolic link from /usr/share/sounds/sf2 to ~/sf2 .

@brummer10
Copy link
Owner

The Places comes from xdg-user-dirs.
Check your ./config/user-dirs.dirs file.
You could add/remove places there, most (I guess all) file-managers will use this file to generate the places list.

@danboid
Copy link
Contributor Author

danboid commented Jun 14, 2023

I tried adding the line:

XDG_SF2_DIR="/usr/share/sounds/sf2"

to ~/.config/user-dirs.dirs like so:

dan@zbook:~/.config$ cat user-dirs.dirs 
# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run.
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
# 
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/"
XDG_TEMPLATES_DIR="$HOME/"
XDG_PUBLICSHARE_DIR="$HOME/"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"
XDG_SF2_DIR="/usr/share/sounds/sf2"

but now qtractor crashes as soon as I click on the folder icon in fluida to try to open a soundfont.

$ qtractor 
Gtk-Message: 13:54:56.192: Failed to load module "canberra-gtk-module"

(qtractor:2350): GLib-GObject-WARNING **: 13:54:56.207: g_object_get_is_valid_property: object class 'GtkSettings' has no property named 'gtk-application-prefer-dark-theme'

(qtractor:2350): GLib-GObject-WARNING **: 13:54:56.208: g_object_get_is_valid_property: object class 'GtkSettings' has no property named 'gtk-application-prefer-dark-theme'
Segmentation fault

@danboid
Copy link
Contributor Author

danboid commented Jun 14, 2023

I've also tried adjusting the path of XDG_MUSIC_DIR:

XDG_MUSIC_DIR="/usr/share/sounds/sf2"

Again qtractor segfaults at the same point, when clicking on the fluida folder icon.

@brummer10
Copy link
Owner

Oh, yes, there was a bug in the xdg_user_dir parser. I've fixed that now.
It should work now with both options you've tried.

@danboid
Copy link
Contributor Author

danboid commented Jun 15, 2023

Hi @brummer10

Yes, thats fixed now. Thanks!

It would be good if you could edit the Fluida README to explain how users can edit ./config/user-dirs.dirs to add custom paths to the open file window to make loading soundfonts easier. That file was unknown to me until you told me about it.

@brummer10
Copy link
Owner

I could do that, but, that is more about the general XDG standard given by freedesktop.org and not really related to Fluida.lv2.

@danboid
Copy link
Contributor Author

danboid commented Jun 15, 2023

I think you should. I did search for this info before I asked you but failed to find it.

It will only take a couple of sentences to do and this makes fluida much more usable for me. I'll submit a PR to add it if you want?

@danboid
Copy link
Contributor Author

danboid commented Jun 15, 2023

#24

@danboid
Copy link
Contributor Author

danboid commented Jun 15, 2023

I should note that I had tried creating a bookmark to my sf2 dir using MATE's Caja file manager but, surprisingly, it doesn't seem to use the user-dirs.dirs file because my bookmarked dirs didn't appear in the Places panel of Fluida's file selector.

@brummer10
Copy link
Owner

Thanks a lot. Merged.

@danboid
Copy link
Contributor Author

danboid commented Jun 15, 2023

I'm going to close this now as knowing how to configure the XDG user dirs (as I've now documented in the README) fixes most of my previous issues with the file selector.

@danboid danboid closed this as completed Jun 15, 2023
@danboid
Copy link
Contributor Author

danboid commented Jun 23, 2023

Just to correct myself on Caja and dirs of interest. Caja does acknowledge the XDG user dirs, its just that you can't add or remove them from within Caja and its Bookmarked dirs, which you can add and remove at will using the Caja GUI are treated separately.

@brummer10
Copy link
Owner

Yes, bookmarks been a different thing. Apps usually using there own config file to store bookmarks as, in opposite to the XDG user dirs, they don't been meant to be global.
Fluida can't use bookmarks because it didn't have a config file. So the only way to add a "bookmark" is to add it to the XDG user dirs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants