Page 14 of 20

Re: MX-21 MX-Fluxbox

Posted: Fri Sep 17, 2021 11:23 am
by PPC
@Jerry3904
Ok- I found a bug on my propose script to toggle xfce-appfinder on/off - it checks if a window called, you guessed it "xfce4-appfinder" is running... But, if the wmadock is running, a file called xfce4-appfinder.desktop appears on the listed windows, so, the script assumes xfce4-appfinder is already running...
So, my script needs a cleanup routine, to remove all lines containing " wmalauncher --command", before it can be fully usable with MXFB... (my bad, because I don't usually run the default dock)

P.

Re: MX-21 MX-Fluxbox

Posted: Fri Sep 17, 2021 11:34 am
by PPC
@Jerry3904

Here you have, a patched version of that script:

Code: Select all

#! /bin/bash
# run "xlsclients" to see if appfinder is running
xlsclients > /tmp/current_windows
# remove all wmalauncher references from the list
grep -v "wmalauncher" /tmp/current_windows > /tmp/current_windows-parsed
current_windows=$(cat /tmp/current_windows-parsed)
#check if appfinder is running
	if [[ ${current_windows} != *"xfce4-appfinder"* ]];then
    echo "appfinder is not running, starting it" & xfce4-appfinder ; exit
    else 
   	echo appfinder is already running, checking if it has focus
 	 	 #check if appfinder is active:
 		 app_name="xfce4-appfinder"
 	 	focused_app=$(cat /proc/$(xdotool getwindowpid $(xdotool getwindowfocus))/comm)
 	   	 if [  "$focused_app" = "$app_name" ]; then
		    	echo "appfinder has focus, killing it." & killall xfce4-appfinder
			else
    			echo "appfinder is running but has no focus, changing focus to it" & killall xfce4-appfinder && xfce4-appfinder
	 	 fi
	 fi

Re: MX-21 MX-Fluxbox

Posted: Thu Sep 23, 2021 4:42 pm
by bubba66
I installed MXFB 5 days ago and have found no concerns at all, I have only added things I wanted such as starting bluetooth at login, but I am really enjoying using it. There are all the things I love about MX and all the best things I love about window managers. Very adaptable, thanks for all your work in putting this together for us.

Re: MX-21 MX-Fluxbox

Posted: Thu Sep 23, 2021 5:00 pm
by Jerry3904
Thanks for the feedback--it's our only reward!

Re: MX-21 MX-Fluxbox

Posted: Fri Sep 24, 2021 3:57 am
by bubba66
Well Jerry you deserve a large beer on me, however, as I cannot do that I made a donation to the project.


Dave H

Re: MX-21 MX-Fluxbox

Posted: Fri Sep 24, 2021 5:57 am
by Jerry3904
Thanks, Dave! I'm just The Mouth. There is a whole team working on this, and they're terrific.

Re: MX-21 MX-Fluxbox

Posted: Sat Oct 02, 2021 3:19 pm
by bubba66
Hi Jerry, I have been on a week's holiday and just wanted to say again what a brilliant distribution this is - all accolades to the team. Loving Fluxbox

Re: MX-21 MX-Fluxbox

Posted: Tue Oct 05, 2021 4:00 am
by kobaian
I found some problem with managing default apps in MXFB. The "exo-open" command works well with MXFB21 beta, but I cannot find how to change the preferred file-manager from thunar to pcmanfm-qt. The command exo-preferred-applications does not exist and probably the only way to have it is to install the full xfce4-settings package. Other tips I found in Internet to change the default apps don't work either for me.

Re: MX-21 MX-Fluxbox

Posted: Tue Oct 05, 2021 4:31 am
by ceeslans
A quick&dirty way would be to set it via pcmanfm-qt itself...
When in pcmanfm-qt, does rightclicking a folder offer you an 'Open with...' menu ?? if so, does the 'Other Applications' menu item open up a tree-list of application categories? If it doesn't, you need to install lxmenu-data (so pcmanfm-qt can access the desktop files in /usr/share/applications).
From there you should be able to set pcmanfm-qt as default application.

commandline alternative :
to check current default application for opening folders

Code: Select all

$ xdg-mime query default inode/directory
which will probably show you: thunar.desktop

to set 'pcmanfm-qt' as default application for opening folders

Code: Select all

$ xdg-mime default pcmanfm-qt.desktop inode/directory
Suggest you check the 'xdg-mime' manpage for more options and details

Re: MX-21 MX-Fluxbox

Posted: Tue Oct 05, 2021 3:44 pm
by kobaian
ceeslans wrote: Tue Oct 05, 2021 4:31 am A quick&dirty way would be to set it via pcmanfm-qt itself...
When in pcmanfm-qt, does rightclicking a folder offer you an 'Open with...' menu ?? if so, does the 'Other Applications' menu item open up a tree-list of application categories? If it doesn't, you need to install lxmenu-data (so pcmanfm-qt can access the desktop files in /usr/share/applications).
From there you should be able to set pcmanfm-qt as default application.

commandline alternative :
to check current default application for opening folders

Code: Select all

$ xdg-mime query default inode/directory
which will probably show you: thunar.desktop

to set 'pcmanfm-qt' as default application for opening folders

Code: Select all

$ xdg-mime default pcmanfm-qt.desktop inode/directory
Suggest you check the 'xdg-mime' manpage for more options and details
I tried both solutions, none of them solves the problem.

Code: Select all

$ xdg-mime query default inode/directory
pcmanfm-qt.desktop
But exo-open $HOME still opens Thunar, not PCManFM-qt.