proper way to install icewm in 15.04

Israel israeldahl at gmail.com
Tue Sep 8 22:12:51 UTC 2015


Hi,
I use JWM so I would suggest doing something similar to what I have.
The best way to do it would be to make an xsession:
 first create:
 /usr/share/xsession//mysession/.desktop
Put something like:

[Desktop Entry]
Name=Ice WM
Comment=log into Ice WM
Type=Application
Terminal=False
Exec=/usr/bin/starticewm
TryExec=starticewm
X-LightDM-DesktopName=Ice WM

[Window Manager]
SessionManaged=true

I attached a sample script  it uses /etc/X11/Xsession
This starts some things that are nice to have...

The other alternative is to use lxsession but you need to create the
lxsession file.

I am not familiar with icewm so I cannot fully tell you what you can do
to run all of your particular things....  you might need to check the
docs for how to autostart things in icewm.

If you want to use JWM e-mail me privately and I can hook you up with my
PPAs that will do everything for you :)


Just know, that you will need to create some polkit rules if you are not
using lxsession, as you will need to have permission to use disks, and
the network, and other things...

hope that helps

On 09/08/2015 04:40 PM, zentara wrote:
> Hi,
> I think Lubuntu15.04 is a great, well performing
> distro. I've installed it in a few laptops, and it 
> is a better looking install than MSWindows!
>
> I am used to using ICEWM, and am wondering,
> what is the correct way to change from LXDE to ICEWM,
> taking into account all the various resource files?
>
> I was able to get icewm to run, by putting a local
> .xinitrc file in my home directory, with a few lines:
> exec /usr/bin/icewmtray &
> exec /usr/bin/icewm
>
> But I lost the graphical login, and a few other things.
> So what is the proper way to do this?
>
> Thanks,
> 0m,
> zentara
>


-- 
Regards

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/lubuntu-users/attachments/20150908/79f4f262/attachment.html>
-------------- next part --------------
#!/bin/bash
LOG="$HOME/.starticewm.log"
DATE=$(date)
echo "${DATE}" > "${LOG}"
echo "running $0" >> "${LOG}"
ME="$(whoami)"
echo "USER: ${ME}" >> "${LOG}"
# Close STDERR FD
exec 2<&-
# Redirect STDERR to STDOUT
exec 2>>"$LOG"

##optional
update-menus

## XDG VARIABLES
if [ -z "$XDG_MENU_PREFIX" ]
then
  export XDG_MENU_PREFIX="lxde-" && echo "export $XDG_MENU_PREFIX">> "$LOG"
else
    echo "XDG_MENU_PREFIX=$XDG_MENU_PREFIX">> "$LOG"
fi
if [ -z "$DESKTOP_SESSION" ]
then
  export DESKTOP_SESSION="icewm" && echo "export $DESKTOP_SESSION">> "$LOG"
else
    echo "DESKTOP_SESSION=$DESKTOP_SESSION">> "$LOG"
fi
if [ -z "$XDG_CURRENT_DESKTOP" ]
then
  export XDG_CURRENT_DESKTOP="IceWM" && echo "export $XDG_CURRENT_DESKTOP">> "$LOG"
else
    echo "XDG_CURRENT_DESKTOP=$XDG_CURRENT_DESKTOP">> "$LOG"
fi

if [ -z "$XDG_CONFIG_HOME" ]
then
  export XDG_CONFIG_HOME="$HOME/.config" && echo "export $XDG_CONFIG_HOME">> "$LOG"
else
    echo "XDG_CONFIG_HOME=$XDG_CONFIG_HOME">> "$LOG"
fi
if [ -z "$XDG_DATA_DIRS" ]
then
    export XDG_DATA_DIRS="/usr/local/share:/usr/share" && echo "export $XDG_DATA_DIRS">> "$LOG"
else
    echo "XDG_DATA_DIRS=$XDG_DATA_DIRS">> "$LOG"
fi

if [ -z "$XDG_CONFIG_DIRS" ]
then
    export XDG_CONFIG_DIRS="/usr/share/upstart/xdg:/etc/xdg" && echo "export $XDG_CONFIG_DIRS">> "$LOG"
else
    echo "XDG_CONFIG_DIRS=$XDG_CONFIG_DIRS">> "$LOG"
fi

[ -d "$XDG_CONFIG_HOME" ] || mkdir -p "$XDG_CONFIG_HOME"

if [ -z "$XDG_CACHE_HOME" ]
then
  XDG_CACHE_HOME="$HOME/.cache" && echo "export $XDG_CACHE_HOME">> "$LOG"
else
  echo "XDG_CACHE_HOME=$XDG_CACHE_HOME" >> "$LOG"
fi
[ -d "$XDG_CACHE_HOME" ] || mkdir -p "$XDG_CACHE_HOME"

if [ -z "$XDG_DATA_HOME" ]
then
  export XDG_DATA_HOME="$HOME/.local/share/" && echo "export $XDG_DATA_HOME" >> "$LOG"
else
  echo "XDG_DATA_HOME=$XDG_DATA_HOME" >> "$LOG"
fi
[ -d "$XDG_DATA_HOME" ] || mkdir -p "$XDG_DATA_HOME"

# Enable GTK+2 integration for OpenOffice.org, if available.
export SAL_USE_VCLPLUGIN=gtk

if [ "${ME/-*}" == "guest" ]
then
  icewm
else
  /etc/X11/Xsession icewm
fi


More information about the Lubuntu-users mailing list