Giter Site home page Giter Site logo

File selector suggestions about fluida.lv2 HOT 16 CLOSED

danboid avatar danboid commented on June 19, 2024
File selector suggestions

from fluida.lv2.

Comments (16)

brummer10 avatar brummer10 commented on June 19, 2024 1

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.

from fluida.lv2.

brummer10 avatar brummer10 commented on June 19, 2024 1

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.

from fluida.lv2.

danboid avatar danboid commented on June 19, 2024 1

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.

from fluida.lv2.

brummer10 avatar brummer10 commented on June 19, 2024 1

Thanks a lot. Merged.

from fluida.lv2.

danboid avatar danboid commented on June 19, 2024

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.

from fluida.lv2.

danboid avatar danboid commented on June 19, 2024

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 .

from fluida.lv2.

brummer10 avatar brummer10 commented on June 19, 2024

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.

from fluida.lv2.

danboid avatar danboid commented on June 19, 2024

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

from fluida.lv2.

danboid avatar danboid commented on June 19, 2024

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.

from fluida.lv2.

danboid avatar danboid commented on June 19, 2024

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.

from fluida.lv2.

brummer10 avatar brummer10 commented on June 19, 2024

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

from fluida.lv2.

danboid avatar danboid commented on June 19, 2024

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?

from fluida.lv2.

danboid avatar danboid commented on June 19, 2024

#24

from fluida.lv2.

danboid avatar danboid commented on June 19, 2024

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.

from fluida.lv2.

danboid avatar danboid commented on June 19, 2024

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.

from fluida.lv2.

brummer10 avatar brummer10 commented on June 19, 2024

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.

from fluida.lv2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.