SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-11-07 13:09:52

farinet
#! Junkie
Registered: 2012-11-03
Posts: 296

[SOLVED] Substitute Thunar by PCManFM?

Since i'm new to Crunchbang and moreover a simple user (not a linux-addicted or so) here comes my, may a bit stupid, question:

From years with LXDE on a Powerbook (G4) i'm used to pcmanfm and for some aspects i like it a lot (very clean, simple and easy). Now, i'm unsure, if it is possible - and reasonable - to substitute thunar by pcmanfm sicunce i'm under the impression thunar in crunchbang is reponsible for mounting/unmounting drives, e.g. and may be also other things (pcmanfm is not doing in lxde environment).

What say the crunchbang "gurus"?

TIA

PS. If it would only be for "Places" in the Openbox right click menu, that i wouldn't consider really very important (for me).

Last edited by farinet (2012-11-08 17:50:24)

Offline

Be excellent to each other!

#2 2012-11-07 14:25:22

s33ker
Member
From: Misourri, USA
Registered: 2012-08-21
Posts: 21

Re: [SOLVED] Substitute Thunar by PCManFM?

I think you can. I actually installed LXDE on my Crunchbang, which gives me PcFileMan ......... Not 100% certain you can just install that in openbox by its lonesome though ........


It's hard to remember your main objective was to drain the swamp, when you are up to you ass in alligators.

Offline

#3 2012-11-07 14:40:59

snowpine
#!-a-roo
Registered: 2008-11-24
Posts: 2,984

Re: [SOLVED] Substitute Thunar by PCManFM?

Simply:

sudo apt-get install pcmanfm

CrunchBang actually used to use pcmanfm as its default file manager, so I can reassure you it is 100% compatible. smile

Offline

#4 2012-11-07 16:17:41

farinet
#! Junkie
Registered: 2012-11-03
Posts: 296

Re: [SOLVED] Substitute Thunar by PCManFM?

Offline

#5 2012-11-07 16:24:53

snowpine
#!-a-roo
Registered: 2008-11-24
Posts: 2,984

Re: [SOLVED] Substitute Thunar by PCManFM?

Offline

#6 2012-11-07 16:46:34

farinet
#! Junkie
Registered: 2012-11-03
Posts: 296

Re: [SOLVED] Substitute Thunar by PCManFM?

Offline

#7 2012-11-07 16:50:16

snowpine
#!-a-roo
Registered: 2008-11-24
Posts: 2,984

Re: [SOLVED] Substitute Thunar by PCManFM?

I'm not a pcmanfm user so I don't know the answer to that question, sorry. When I briefly used pcmanfm in openbox I don't recall it having any problems at all, but I don't remember that specific Applications feature one way or the other.

Last edited by snowpine (2012-11-07 16:50:28)

Offline

#8 2012-11-07 19:30:42

farinet
#! Junkie
Registered: 2012-11-03
Posts: 296

Re: [SOLVED] Substitute Thunar by PCManFM?

Offline

#9 2012-11-07 19:47:24

rebornmechanics
#! CrunchBanger
Registered: 2012-11-05
Posts: 176

Re: [SOLVED] Substitute Thunar by PCManFM?

sudo geany /usr/bin/cb-places-pipemenu

Last edited by rebornmechanics (2012-11-08 00:13:15)

Offline

#10 2012-11-07 22:52:46

farinet
#! Junkie
Registered: 2012-11-03
Posts: 296

Re: [SOLVED] Substitute Thunar by PCManFM?

Wow! Thanks a lot, i'll gave that a try!!! smile

Offline

#11 2012-11-08 00:11:10

rebornmechanics
#! CrunchBanger
Registered: 2012-11-05
Posts: 176

Re: [SOLVED] Substitute Thunar by PCManFM?

I just realized I totally misunderstood your question. You were asking about that "applications" icon in the pcmanfm sidepane leading to menu://applications/. I probably didn't read properly. The steps I listed should integrate pcmanfm into #! nicely, however they will not make said "applications" icon work.
Never used this icon before, too. But now I'm curious about it. What I've found by googling so far is that apparently one has to set the environment variable XDG_MENU_PREFIX to use a file in /etc/xdg/menus.
Running

echo $XDG_MENU_PREFIX

returns nothing => the variable is not set. So I tried running

export XDG_MENU_PREFIX=lxde-

after which it properly returns lxde-
menu://applications/ remains empty however. Anyone else got any idea?

Note: reading my previous post, I noticed the part about the thunar daemon I wrote was not correct. Fixed it now.

Last edited by rebornmechanics (2012-11-08 00:14:57)

Offline

#12 2012-11-08 08:09:58

farinet
#! Junkie
Registered: 2012-11-03
Posts: 296

Re: [SOLVED] Substitute Thunar by PCManFM?

Thanks a lot for your patience and engagement.

Two remarks, i followed your instructions but then i had all kind of trouble with pcmanfm. Among other, the topic Desktop in the side bar pointed to ~$ and not to ~/Desktop like it should. I reverted all back. Thanks to you i had made *.backup of all touched files so, it was easy.

I found out, more or less, what you found as well regard to the (pcmanfm) Applications topic in the side bar. Unfortunately i'm not skilled enough to deal well with it. My basic idea would be to create a symlink which points to the file containing the openbox right click menu, call it lxde.menu and put it in the place whereto pcmanfm looks. Or is that ingenuous? Moreover, one should know exactly the places of all involved files . . . wink

Offline

#13 2012-11-08 11:42:22

rebornmechanics
#! CrunchBanger
Registered: 2012-11-05
Posts: 176

Re: [SOLVED] Substitute Thunar by PCManFM?

Offline

#14 2012-11-08 13:02:05

farinet
#! Junkie
Registered: 2012-11-03
Posts: 296

Re: [SOLVED] Substitute Thunar by PCManFM?

Offline

#15 2012-11-08 16:12:39

rebornmechanics
#! CrunchBanger
Registered: 2012-11-05
Posts: 176

Re: [SOLVED] Substitute Thunar by PCManFM?

#!/bin/bash
# ---------------------------------------------------------------------
# Written for CrunchBang Linux <http://crunchbang.org/>
# by Philip Newborough (aka corenominal) <corenominal@corenominal.org>
# ---------------------------------------------------------------------

pathto=$(readlink -f "$0" | sed 's%/*[^/]\+/*$%%')

if [[ -f $pathto/cb-include.cfg ]]
then
    source "$pathto/cb-include.cfg"
else
    echo "  Failed to locate cb-include.cfg"
    exit 1
fi

if [ "$1" = "--chromium-browser" ]; then
    terminator --title="Install Chromium Browser" --command="cb-x-www-browser-pipemenu --install-chromium-browser"
    exit 0
fi

if [ "$1" = "--iceweasel" ]; then
    terminator --title="Install Iceweasel Browser" --command="cb-x-www-browser-pipemenu --install-iceweasel"
    exit 0
fi

if [ "$1" = "--midori" ]; then
    terminator --title="Install midori Browser" --command="cb-x-www-browser-pipemenu --install-midori"
    exit 0
fi

if [ "$1" = "--install-chromium-browser" ]; then
    clear
    echo ""
    echo "  INSTALL CHROMIUM BROWSER"
    echo "  ------------------------"
    echo "  This script will install Chromium."
    echo ""
    echo -n "  Run the installer now? (Y|n) > "
    read a
    if [ "$a" = "y" ] || [ "$a" = "Y" ] || \
    [ "$a" = "" ]; then
        
        connectiontest
        clear
        echo "  Updating sources..."
		sleep 2s
		sudo apt-get update
		clear
        
        
        if ! sudo apt-get install -y chromium-browser; then
            clear
            echo ""
            echo "  There was a problem installing Chromium."
            echo ""
            echo "  Hit any key to try again, or \"q\" to quit..."
            read -n1 a
            if [ "$a" = "q" ] || [ "$a" = "Q" ]; then
                clear
                exit 0
            else
                cb-x-www-browser-pipemenu --install-chromium-browser
                exit 0
            fi
        else
            clear
            echo ""
            echo "  Chromium has been installed successfully."
            echo ""
            echo "  Hit any key to exit..."
            read -n1 a
            exit 0
        fi
    else
        exit 0
    fi
fi

if [ "$1" = "--install-iceweasel" ]; then
    clear
    echo ""
    echo "  INSTALL ICEWEASEL BROWSER"
    echo "  -------------------------"
    echo "  This script will install Iceweasel."
    echo ""
    echo -n "  Run the installer now? (Y|n) > "
    read a
    if [ "$a" = "y" ] || [ "$a" = "Y" ] || \
    [ "$a" = "" ]; then
        
        connectiontest
        clear
        echo "  Updating sources..."
		sleep 2s
		sudo apt-get update
		clear
        
        
        if ! sudo apt-get install -y iceweasel; then
            clear
            echo ""
            echo "  There was a problem installing Iceweasel."
            echo ""
            echo "  Hit any key to try again, or \"q\" to quit..."
            read -n1 a
            if [ "$a" = "q" ] || [ "$a" = "Q" ]; then
                clear
                exit 0
            else
                cb-x-www-browser-pipemenu --install-iceweasel
                exit 0
            fi
        else
            clear
            echo ""
            echo "  Iceweasel has been installed successfully."
            echo ""
            echo "  Hit any key to exit..."
            read -n1 a
            exit 0
        fi
    else
        exit 0
    fi
fi

if [ "$1" = "--install-midori" ]; then
    clear
    echo ""
    echo "  INSTALL MIDORI BROWSER"
    echo "  -------------------------"
    echo "  This script will install midori."
    echo ""
    echo -n "  Run the installer now? (Y|n) > "
    read a
    if [ "$a" = "y" ] || [ "$a" = "Y" ] || \
    [ "$a" = "" ]; then
        
        connectiontest
        clear
        echo "  Updating sources..."
		sleep 2s
		sudo apt-get update
		clear
        
        
        if ! sudo apt-get install -y midori; then
            clear
            echo ""
            echo "  There was a problem installing midori."
            echo ""
            echo "  Hit any key to try again, or \"q\" to quit..."
            read -n1 a
            if [ "$a" = "q" ] || [ "$a" = "Q" ]; then
                clear
                exit 0
            else
                cb-x-www-browser-pipemenu --install-midori
                exit 0
            fi
        else
            clear
            echo ""
            echo "  midori has been installed successfully."
            echo ""
            echo "  Hit any key to exit..."
            read -n1 a
            exit 0
        fi
    else
        exit 0
    fi
fi
# Start pipemenu
echo "    <openbox_pipe_menu>"

# Chromium
if [ -x "/usr/bin/chromium-browser" ];then
    I=$((I+1))
    cat << _menu_
	    <item label="Chromium Browser">
            <action name="Execute">
				<command>
					chromium-browser
				</command>
			</action>
		</item>
		<item label="Chromium Browser (Private Mode)">
            <action name="Execute">
				<command>
					chromium-browser --incognito
				</command>
			</action>
		</item>
_menu_
else
	cat << _menu_
	    <item label="Install Chromium Browser">
            <action name="Execute">
				<command>
					cb-x-www-browser-pipemenu --chromium-browser
				</command>
			</action>
		</item>
_menu_
fi

# Iceweasel
if [ -x "/usr/bin/iceweasel" ];then
    I=$((I+1))
    cat << _menu_
	    <item label="Iceweasel">
            <action name="Execute">
				<command>
					iceweasel
				</command>
			</action>
		</item>
_menu_
else
	cat << _menu_
	    <item label="Install Iceweasel">
            <action name="Execute">
				<command>
					cb-x-www-browser-pipemenu --iceweasel
				</command>
			</action>
		</item>
_menu_
fi

# Midori
if [ -x "/usr/bin/midori" ];then
    I=$((I+1))
    cat << _menu_
	    <item label="Midori">
            <action name="Execute">
				<command>
					midori
				</command>
			</action>
		</item>
_menu_
else
	cat << _menu_
	    <item label="Install Midori">
            <action name="Execute">
				<command>
					cb-x-www-browser-pipemenu --midori
				</command>
			</action>
		</item>
_menu_
fi


# Configure default
if [ $I -gt 1 ];then
    cat << _menu_
	    <separator/>
	    <item label="Select default browser">
            <action name="Execute">
				<command>
					terminator --command="sudo update-alternatives --config x-www-browser"
				</command>
			</action>
		</item>
_menu_
fi
# End pipemenu
echo "    </openbox_pipe_menu>"
exit 0

Last edited by rebornmechanics (2012-11-08 16:30:17)

Offline

#16 2012-11-08 16:33:24

farinet
#! Junkie
Registered: 2012-11-03
Posts: 296

Re: [SOLVED] Substitute Thunar by PCManFM?

Last edited by farinet (2012-11-08 16:43:36)

Offline

#17 2012-11-08 17:03:42

farinet
#! Junkie
Registered: 2012-11-03
Posts: 296

Re: [SOLVED] Substitute Thunar by PCManFM?

Yeah, really great advice! All fine now . . . big_smile  big_smile

Just a - theoretical - question: The right click openbox menu is cofigured elsewhere, isn't it? And since there are some lxde related config files: #! installs them by default?

Offline

#18 2012-11-08 17:30:33

rebornmechanics
#! CrunchBanger
Registered: 2012-11-05
Posts: 176

Re: [SOLVED] Substitute Thunar by PCManFM?

Awesome.

Openbox menu is configured in:
~/.config/openbox/menu.xml
I just noticed I said rc.xml before. Of course that was pretty stupid of me. neutral

Most of these lxde files come with pcmanfm as it depends on lxmenu-data.

If everything works now, you can mark this as solved.

Offline

#19 2012-11-11 14:00:48

farinet
#! Junkie
Registered: 2012-11-03
Posts: 296

Re: [SOLVED] Substitute Thunar by PCManFM?

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo