You are not logged in.
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
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
Simply:
sudo apt-get install pcmanfmCrunchBang actually used to use pcmanfm as its default file manager, so I can reassure you it is 100% compatible. 
Offline
Offline
Offline
Offline
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
Offline
sudo geany /usr/bin/cb-places-pipemenuLast edited by rebornmechanics (2012-11-08 00:13:15)
Offline
Wow! Thanks a lot, i'll gave that a try!!! 
Offline
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_PREFIXreturns 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
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 . . . 
Offline
Offline
Offline
#!/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 0Last edited by rebornmechanics (2012-11-08 16:30:17)
Offline
Last edited by farinet (2012-11-08 16:43:36)
Offline
Yeah, really great advice! All fine now . . .
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
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. 
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
Offline
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