LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Ridiculous work-around for kdialog ignoring geometry parameters

Posted 11-30-2023 at 03:55 PM by the dsc (linux-related notes)
Updated 01-29-2024 at 01:25 PM by the dsc

Have kdialog preceeded by (or succeeded after an "&" if the context allows it, and if it's preferable for some reason) a loop that has wmctrl "grepping"/activating" the unique name of the kdialog window, followed by xdotool resizing it, and breaking the loop.

Code:
( while  true ; do
sleep 0.2 # reduces CPU load if the loop never breaks for some reason
wmctrl -a "relevant and ideally unique title for kdialog window"  &&
...
Member
Posted in Uncategorized
Views 126 Comments 0 the dsc is offline
Old

You CAN use kdialog "getfilename" to choose a directory, contrarily to some tutorials around

Posted 08-06-2021 at 09:06 PM by the dsc (linux-related notes)
Updated 08-17-2022 at 11:38 AM by the dsc (GrAmm3r ][)

Code:
dir=$(kdialog --getopenfilename "${defdir:-$PWD}" 'inode/directory' --title "Please choose the directory you want") ; cd ${dir}
I like it more than the "--getexistingdirectory" alternative (or zenity/gnome) which uses a system wide directory tree where you have to click on the tiny arrows or plus/minus icons to their left in order to open or close them, if you double click them hoping to enter, as you would on other file/directory navigation dialogs (or...
Member
Posted in Uncategorized
Views 628 Comments 0 the dsc is offline
Old

[SOLVED?] Kdialog ("save file as") extremely slow to show up

Posted 10-08-2019 at 12:15 PM by the dsc (linux-related notes)

There are plenty of threads around the internet with this problem, not everyone is able to reproduce it, and probably "fixes" don't always work. In my case, I'm not even on KDE/plasma, even though I prefer KDE file managers and dialogs.

What I found that worked for me so far was from here: https://forum.manjaro.org/t/dolphin-...-load/69134/11

Quote:
Originally Posted by b_quest

It’s because dolphin may call upower when starting and upower fails and causes
...
Member
Posted in Uncategorized
Views 900 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 10:34 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration