SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,089
Rep:
Quote:
Originally Posted by ralvex
Good!
I make other xfce-*-plugin's pkg right now. I send in this repository soon.
Overall your 64 bit package is working great. Merci Beaucoup! And, thanks for including Mousepad. Greatly appreciated!
One problem is it won't run NetworkManager as user. It will as root, but the applet won't load as user. Probably has the something to do with not being able to shutdown or reboot the computer from the log off menu. Most likely a permission problem, I would guess. I've installed wicd until I can figure it out.
Again, Many Thanks.
Viva La France!
Overall your 64 bit package is working great. Merci Beaucoup! And, thanks for including Mousepad. Greatly appreciated!
One problem is it won't run NetworkManager as user. It will as root, but the applet won't load as user. Probably has the something to do with not being able to shutdown or reboot the computer from the log off menu. Most likely a permission problem, I would guess. I've installed wicd until I can figure it out.
Again, Many Thanks.
Viva La France!
@cwizardone
I not use network-manager, i can not help you for this.
For shutdown and reboot: i use SalixOS 13.37 and logout-applets it's OK, can be you're system is configured differently?
EDIT: I added several xfce4-plugins (rebuilt for Xfce-4.10) in the repository ;-)
Last edited by ralvex; 04-30-2012 at 07:42 PM.
Reason: add update
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,089
Rep:
Quote:
Originally Posted by ralvex
@cwizardone
I not use network-manager, i can not help you for this.
For shutdown and reboot: i use SalixOS 13.37 and logout-applets it's OK, can be you're system is configured differently?
Not to worry. I'll figure it out.
Quote:
Originally Posted by ralvex
EDIT: I added several xfce4-plugins (rebuilt for Xfce-4.10) in the repository ;-)
This Xfce 4.10 is sweeet. I really like the vertical panel and settings manager and mime editor is nice too have too. Finally there is option for presentation in power manager Great desktop got even greater. Many thanks for packages.
Suspend, restart, shutdown etc were greyed out for me too, but I've installed GConf and ORBit2 with slackpkg and then grabbed few 4.8 dependancy packages from rworkmans repository upower, udisks, sg3_utils and ggnome-disk-utility then modified my .xinitrc so xfce would be launched like this: exec ck-launch-session startxfce4
Power management seems to work well now, as for other deps, I'm not sure what is needed and why, maybe someone can explain further.
Just an update to my earlier post. An in depth explanation about xfce dependencies can be found in rworkman xfce 4.8 repository NOTES I've found the same apply to to 4.10.
Also I had a little problem with mounting. When external disk or usb key with NTFS file system was plugged in, gvfs would mount it as Read Only. A quick fix for that is a symlink to ntfs-3g ln -s /bin/ntfs-3g /sbin/mount.ntfs
Other than that, no more problems were detected so far. Many thanks to ralvex for the effort on XFCE 4.10 it's a really nice refreshment for 13.37
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,089
Rep:
Other than the NetworkManager issue, Xfce 4.10, has worked fine.
Wicd works with Xfce 4.10, but NetworkManager 0.9.2 and it's applet report, "no networks devices available." Tried NetworkManager 0.9.4 and it's applet 0.9.4.1, but the applet won't even load. Both work well with KDE 4.8.2.
I had considered giving up on NetworkManager and using Wicd, the latest version, but when I booted up and it told me there were no available networks in the area and I"m looking straight at the router not more than 12 feet away, Wicd went into the trash.
If I figure it out, the solution will be posted here.
Edit in: Both versions of NetworkManager mentioned above work as root, but not as user.
Last edited by cwizardone; 05-02-2012 at 09:12 PM.
Reason: Added, NM works as root.
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,089
Rep:
Well, halfway there. Found someone on a Arch forum was having a similar problem with KDE, so I changed part of their solution and at the command prompt entered, ck-launch-session startxfce4
Now NetworkManager works, but I can't edit any of the connections. Still plugging away at it...
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,089
Rep:
This problem is solved.
It was the .xinitrc file for Xfce 4.10.
I went to edit it and noticed it was 5,693 bytes in size. MUCH TOO BIG. Looked through it and it didn't make much sense to me so I renamed it.
Then I ran xwmconfig and picked KDE and looked at the resulting .xinitrc file. It was only about 560 bytes and looked pretty generic, so I edited it to start Xfce instead of KDE.
Worked.
Networkmanager is now working as it should and the log out options are no longer greyed out.
Probably not a pretty solutions, but it works.
I went to edit it and noticed it was 5,693 bytes in size. MUCH TOO BIG. Looked through it and it didn't make much sense to me so I renamed it.
Then I ran xwmconfig and picked KDE and looked at the resulting .xinitrc file. It was only about 560 bytes and looked pretty generic, so I edited it to start Xfce instead of KDE.
Worked.
Networkmanager is now working as it should and the log out options are no longer greyed out.
Probably not a pretty solutions, but it works.
I not understand. The problem as a relation with my package?
xinitrc's file of my package not mention KDE.
This is in relation with your configuration? You are Kde installed before Xfce??
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,089
Rep:
Quote:
Originally Posted by ralvex
I not understand. The problem as a relation with my package?
xinitrc's file of my package not mention KDE.
This is in relation with your configuration? You are Kde installed before Xfce??
I don't know if it comes from your package or not, but when I run xwmconfig and pick Xfce, this is what is generated:
(I added the "fce4" on lines 91 and 103).
Quote:
#!/bin/sh
# fix broken $UID on some system...
if test "x$UID" = "x"; then
if test -x /usr/xpg4/bin/id; then
UID=`/usr/xpg4/bin/id -u`;
else
UID=`id -u`;
fi
fi
# set $XDG_MENU_PREFIX to "xfce-" so that "xfce-applications.menu" is picked
# over "applications.menu" in all Xfce applications.
if test "x$XDG_MENU_PREFIX" = "x"; then
XDG_MENU_PREFIX="xfce-"
export XDG_MENU_PREFIX
fi
# set DESKTOP_SESSION so that one can detect easily if an Xfce session is running
if test "x$DESKTOP_SESSION" = "x"; then
DESKTOP_SESSION="xfce"
export DESKTOP_SESSION
fi
# $XDG_CONFIG_HOME defines the base directory relative to which user specific
# configuration files should be stored. If $XDG_CONFIG_HOME is either not set
# or empty, a default equal to $HOME/.config should be used.
if test "x$XDG_CONFIG_HOME" = "x" ; then
XDG_CONFIG_HOME=$HOME/.config
fi
[ -d "$XDG_CONFIG_HOME" ] || mkdir "$XDG_CONFIG_HOME"
# $XDG_CACHE_HOME defines the base directory relative to which user specific
# non-essential data files should be stored. If $XDG_CACHE_HOME is either not
# set or empty, a default equal to $HOME/.cache should be used.
if test "x$XDG_CACHE_HOME" = "x" ; then
XDG_CACHE_HOME=$HOME/.cache
fi
[ -d "$XDG_CACHE_HOME" ] || mkdir "$XDG_CACHE_HOME"
# Modify libglade and glade environment variables so that
# it will find the files installed by Xfce
GLADE_CATALOG_PATH="$GLADE_CATALOG_PATH:"
GLADE_PIXMAP_PATH="$GLADE_PIXMAP_PATH:"
GLADE_MODULE_PATH="$GLADE_MODULE_PATH:"
export GLADE_CATALOG_PATH
export GLADE_PIXMAP_PATH
export GLADE_MODULE_PATH
# For now, start with an empty list
XRESOURCES=""
# Has to go prior to merging Xft.xrdb, as its the "Defaults" file
test -r "/etc/xfce/xdg/xfce4/Xft.xrdb" && XRESOURCES="$XRESOURCES /etc/xfce/xdg/xfce4/Xft.xrdb"
test -r $HOME/.Xdefaults && XRESOURCES="$XRESOURCES $HOME/.Xdefaults"
BASEDIR=$XDG_CONFIG_HOME/xfce4
if test -r "$BASEDIR/Xft.xrdb"; then
XRESOURCES="$XRESOURCES $BASEDIR/Xft.xrdb"
elif test -r "$XFCE4HOME/Xft.xrdb"; then
mkdir -p "$BASEDIR"
cp "$XFCE4HOME/Xft.xrdb" "$BASEDIR"/
XRESOURCES="$XRESOURCES $BASEDIR/Xft.xrdb"
fi
# merge in X cursor settings
test -r "$BASEDIR/Xcursor.xrdb" && XRESOURCES="$XRESOURCES $BASEDIR/Xcursor.xrdb"
# ~/.Xresources contains overrides to the above
test -r "$HOME/.Xresources" && XRESOURCES="$XRESOURCES $HOME/.Xresources"
# load all X resources (adds /dev/null to avoid an empty list that would hang the process)
cat /dev/null $XRESOURCES | xrdb -nocpp -merge -
# load local modmap
test -r $HOME/.Xmodmap && xmodmap $HOME/.Xmodmap
# run xfce4-session if installed
if which xfce4-session >/dev/null 2>&1; then
# check if we start xfce4-session with ck-launch-session. this is only
# required for starting from a console, not a login manager
if test "x$XFCE4_SESSION_WITH_CK" = "x1"; then
if which ck-launch-session >/dev/null 2>&1; then
ck-launch-session startxfce4
else
echo
echo "You have tried to start Xfce with consolekit support, but"
echo "ck-launch-session is not installed."
echo "Aborted startup..."
echo
exit 1
fi
else
# start xfce4-session normally
startxfce4
fi
exit 0
fi
##################
# IMPORTANT NOTE #
##################
# Everything below here ONLY gets executed if you are NOT using xfce4-session
# (Xfce's session manager). If you are using the session manager, everything
# below is handled by it, and the code below is not executed at all. If you're
# not sure if you're using the session manager, type 'ps -e|grep xfce4-session'
# in a terminal while Xfce is running.
##################
# Use dbus-launch if installed.
if test x"$DBUS_SESSION_BUS_ADDRESS" = x""; then
if which dbus-launch >/dev/null 2>&1; then
eval `dbus-launch --sh-syntax --exit-with-session`
# some older versions of dbus don't export the var properly
export DBUS_SESSION_BUS_ADDRESS
else
echo "Could not find dbus-launch; Xfce will not work properly" >&2
fi
fi
# this is only necessary when running w/o xfce4-session
xsetroot -solid black -cursor_name watch
# or use old-fashioned startup script otherwise
xfsettingsd &
xfwm4 --daemon
# start up stuff in $XDG_CONFIG_HOME/autostart/
if test -d "$XDG_CONFIG_HOME/autostart"; then
for i in ${XDG_CONFIG_HOME}/autostart/*.desktop; do
grep -q -E "^Hidden=true" "$i" && continue
if grep -q -E "^OnlyShowIn=" "$i"; then
# need to test twice, as lack of the line entirely means we still run it
grep -E "^OnlyShowIn=" "$i" | grep -q 'XFCE;' || continue
fi
grep -E "^NotShowIn=" "$i" | grep -q 'XFCE;' && continue
# check for TryExec
trycmd=`grep -E "^TryExec=" "$i" | cut -d'=' -f2`
if test "$trycmd"; then
which "$trycmd" >/dev/null 2>&1 || continue
fi
cmd=`grep -E "^Exec=" "$i" | cut -d'=' -f2`
if test "$cmd" && which "$cmd" >/dev/null 2>&1; then
$cmd &
fi
done
fi
xfdesktop&
orage &
panel=`which xfce4-panel`
case "x$panel" in
x|xno*)
;;
*)
$panel
ret=$?
while test $ret -ne 0; do
xmessage -center -file - -timeout 20 -title Error <<EOF
A crash occured in the panel
Please report this to the xfce4-dev@xfce.org list
or on http://bugs.xfce.org
Meanwhile the panel will be restarted
EOF
cat >&2 <<EOF
A crash occured in the panel
Please report this to the xfce4-dev@xfce.org list
or on http://bugs.xfce.org
Meanwhile the panel will be restarted
EOF
$panel
ret=$?
done
;;
esac
xsetroot -bg white -fg red -solid black -cursor_name watch
There are a couple of things going on with xinitrc, for those familiar with rworkman's xfce slackbuilds. First, the xfce devs dropped the xfce4-utils package and moved all of the relevant components into other tarballs. xinitrc is now part of xfce4-session, so if you run rworkman's xfce.SlackBuild (which calls for a patch to fix consolekit in xinitrc) it will fail because the package to which it should apply isn't there.
If you modify the slackbuild to apply the patch to xfce4-session instead, it will still fail in a couple of locations (2/3 blobs) because there have been a number of changes to xinitrc between 4.8 and 4.10.
I just included a call to create the variable XFCE4_SESSION_WITH_CK (replacing LAUNCH_XFCE_WITH_CK in rworkman's xinitrc patch), dropped the other blobs (I think they were addressed by upstream fixes, but haven't finished testing yet), and this xinitrc seems to work for me (Network Manager runs fine, and shut down/reboot/suspend buttons work for non-root users):
Code:
#!/bin/sh
# fix broken $UID on some system...
if test "x$UID" = "x"; then
if test -x /usr/xpg4/bin/id; then
UID=`/usr/xpg4/bin/id -u`;
else
UID=`id -u`;
fi
fi
# If DESKTOP_SESSION is unset here then X was launched from the command line.
# If ConsoleKit is available, use it later when we run xfce4-session.
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
XFCE4_SESSION_WITH_CK=1
fi
# set $XDG_MENU_PREFIX to "xfce-" so that "xfce-applications.menu" is picked
# over "applications.menu" in all Xfce applications.
if test "x$XDG_MENU_PREFIX" = "x"; then
XDG_MENU_PREFIX="xfce-"
export XDG_MENU_PREFIX
fi
# set DESKTOP_SESSION so that one can detect easily if an Xfce session is running
if test "x$DESKTOP_SESSION" = "x"; then
DESKTOP_SESSION="xfce"
export DESKTOP_SESSION
fi
# $XDG_CONFIG_HOME defines the base directory relative to which user specific
# configuration files should be stored. If $XDG_CONFIG_HOME is either not set
# or empty, a default equal to $HOME/.config should be used.
if test "x$XDG_CONFIG_HOME" = "x" ; then
XDG_CONFIG_HOME=$HOME/.config
fi
[ -d "$XDG_CONFIG_HOME" ] || mkdir "$XDG_CONFIG_HOME"
# $XDG_CACHE_HOME defines the base directory relative to which user specific
# non-essential data files should be stored. If $XDG_CACHE_HOME is either not
# set or empty, a default equal to $HOME/.cache should be used.
if test "x$XDG_CACHE_HOME" = "x" ; then
XDG_CACHE_HOME=$HOME/.cache
fi
[ -d "$XDG_CACHE_HOME" ] || mkdir "$XDG_CACHE_HOME"
# set up XDG user directores. see
# http://freedesktop.org/wiki/Software/xdg-user-dirs
if which xdg-user-dirs-update >/dev/null 2>&1; then
xdg-user-dirs-update
fi
# Modify libglade and glade environment variables so that
# it will find the files installed by Xfce
GLADE_CATALOG_PATH="$GLADE_CATALOG_PATH:"
GLADE_PIXMAP_PATH="$GLADE_PIXMAP_PATH:"
GLADE_MODULE_PATH="$GLADE_MODULE_PATH:"
export GLADE_CATALOG_PATH
export GLADE_PIXMAP_PATH
export GLADE_MODULE_PATH
# For now, start with an empty list
XRESOURCES=""
# Has to go prior to merging Xft.xrdb, as its the "Defaults" file
test -r "/etc/xfce/xdg/xfce4/Xft.xrdb" && XRESOURCES="$XRESOURCES /etc/xfce/xdg/xfce4/Xft.xrdb"
test -r $HOME/.Xdefaults && XRESOURCES="$XRESOURCES $HOME/.Xdefaults"
BASEDIR=$XDG_CONFIG_HOME/xfce4
if test -r "$BASEDIR/Xft.xrdb"; then
XRESOURCES="$XRESOURCES $BASEDIR/Xft.xrdb"
elif test -r "$XFCE4HOME/Xft.xrdb"; then
mkdir -p "$BASEDIR"
cp "$XFCE4HOME/Xft.xrdb" "$BASEDIR"/
XRESOURCES="$XRESOURCES $BASEDIR/Xft.xrdb"
fi
# merge in X cursor settings
test -r "$BASEDIR/Xcursor.xrdb" && XRESOURCES="$XRESOURCES $BASEDIR/Xcursor.xrdb"
# ~/.Xresources contains overrides to the above
test -r "$HOME/.Xresources" && XRESOURCES="$XRESOURCES $HOME/.Xresources"
# load all X resources (adds /dev/null to avoid an empty list that would hang the process)
cat /dev/null $XRESOURCES | xrdb -nocpp -merge -
# load local modmap
test -r $HOME/.Xmodmap && xmodmap $HOME/.Xmodmap
# run xfce4-session if installed
if which xfce4-session >/dev/null 2>&1; then
# check if we start xfce4-session with ck-launch-session. this is only
# required for starting from a console, not a login manager
if test "x$XFCE4_SESSION_WITH_CK" = "x1"; then
if which ck-launch-session >/dev/null 2>&1; then
ck-launch-session xfce4-session
else
echo
echo "You have tried to start Xfce with consolekit support, but"
echo "ck-launch-session is not installed."
echo "Aborted startup..."
echo
exit 1
fi
else
# start xfce4-session normally
xfce4-session
fi
exit 0
fi
##################
# IMPORTANT NOTE #
##################
# Everything below here ONLY gets executed if you are NOT using xfce4-session
# (Xfce's session manager). If you are using the session manager, everything
# below is handled by it, and the code below is not executed at all. If you're
# not sure if you're using the session manager, type 'ps -e|grep xfce4-session'
# in a terminal while Xfce is running.
##################
# Use dbus-launch if installed.
if test x"$DBUS_SESSION_BUS_ADDRESS" = x""; then
if which dbus-launch >/dev/null 2>&1; then
eval `dbus-launch --sh-syntax --exit-with-session`
# some older versions of dbus don't export the var properly
export DBUS_SESSION_BUS_ADDRESS
else
echo "Could not find dbus-launch; Xfce will not work properly" >&2
fi
fi
# this is only necessary when running w/o xfce4-session
xsetroot -solid black -cursor_name watch
# or use old-fashioned startup script otherwise
xfsettingsd &
xfwm4 --daemon
# start up stuff in $XDG_CONFIG_HOME/autostart/
if test -d "$XDG_CONFIG_HOME/autostart"; then
for i in ${XDG_CONFIG_HOME}/autostart/*.desktop; do
grep -q -E "^Hidden=true" "$i" && continue
if grep -q -E "^OnlyShowIn=" "$i"; then
# need to test twice, as lack of the line entirely means we still run it
grep -E "^OnlyShowIn=" "$i" | grep -q 'XFCE;' || continue
fi
grep -E "^NotShowIn=" "$i" | grep -q 'XFCE;' && continue
# check for TryExec
trycmd=`grep -E "^TryExec=" "$i" | cut -d'=' -f2`
if test "$trycmd"; then
which "$trycmd" >/dev/null 2>&1 || continue
fi
cmd=`grep -E "^Exec=" "$i" | cut -d'=' -f2`
if test "$cmd" && which "$cmd" >/dev/null 2>&1; then
$cmd &
fi
done
fi
xfdesktop&
orage &
panel=`which xfce4-panel`
case "x$panel" in
x|xno*)
;;
*)
$panel
ret=$?
while test $ret -ne 0; do
xmessage -center -file - -timeout 20 -title Error <<EOF
A crash occured in the panel
Please report this to the xfce4-dev@xfce.org list
or on http://bugs.xfce.org
Meanwhile the panel will be restarted
EOF
cat >&2 <<EOF
A crash occured in the panel
Please report this to the xfce4-dev@xfce.org list
or on http://bugs.xfce.org
Meanwhile the panel will be restarted
EOF
$panel
ret=$?
done
;;
esac
xsetroot -bg white -fg red -solid black -cursor_name watch
Note that Network Manager may also require some configuration with gnome-keyring. If fixing up xinitrc doesn't do the trick, I'll dig into this a little more (I'm not the one who built Network Manager and got it working on the distro I use).
HTH
My build for XFCE 4.10-final will be present in the upcoming release of Porteus-1.2-RC2, which should be out early next week for those who want to try it before installing XFCE 4.10 on their slackware box (porteus runs from a CD, USB, sd card or hard drive and wouldn't require overwriting anything on your existing setup).
I can make my txz's available as well if folks are interested (32 adn 64-bit...OK, I have ARM as well). It's all based on rworkman's xfce 4.8 build scripts, bumped to current versions for xfce (left dependencies as-is) with some minor modifications and unneccesary (in my opinion) deps removed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.