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

[Feature Request] Use DE's File Dialog #25

Open
Alexhuszagh opened this issue Jan 17, 2018 · 0 comments
Open

[Feature Request] Use DE's File Dialog #25

Alexhuszagh opened this issue Jan 17, 2018 · 0 comments

Comments

@Alexhuszagh
Copy link

Alexhuszagh commented Jan 17, 2018

On KDE (and I'm assuming Gnome, although I cannot confirm currently), Buka's file dialog is very ugly as it uses the naive X11 file dialog by default. For such an elegant and stylish app, this is a major eye-sore by comparison.

To support KDE, you can detect KDE and execute the following lines:

kdialog --getsavefilename /path/to/dir
kdialog --getopenfilename /path/to/dir

I believe you can do the same with GTK (Gnome) and X11 with gtkdialog and XDialog, respectively.

To detect the current desktop environment, you may check the environment variable DESKTOP_SESSION. For example, on KDE, it is set to /usr/share/xsessions/plasma.

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

1 participant