On 06/28/2013 03:14 PM, Federico Leoni wrote:

> Then I created my personal /usr/bin/startlubuntucmp pointing to a
> session folder called LubuntuCMP. Worked, I can set a theme for icons
> and windows editing the desktop.conf file but I can't change the
> position of the panel without modify it on other sessions

You need to man lxpanel :)

By default startlubuntu will set up a DE such that lxpanel is run (via
the autostart file) with the parameters

  lxpanel --profile Lubuntu

If you need a special separate profile for LubuntuCMP, then create one
under ~/.config/lxpanel/LubuntuCMP/

and start up lxpanel with

  lxpanel --profile LubuntuCMP

Then the two profiles are separate, which is what you seem to want.

> nor I can get autostart file to work.

Which exact file, and what exact contents are you putting in that file?
Just saying "It does not work" is really hard to troubleshoot!  Please
provide clear, specific step-by-step instructions to reproduce the
issue, and there is a chance someone can duplicate the issue, and then
help solve the problem for you.

The autostart system is working fine for me... see below.

In general, I think you would benefit a lot from spending some time
learning more about how the whole X system and DE are started up, in
detail, so you are very clear on where to customize what, to achieve the
effects you are looking for.

If you are doing this for business purposes, you need to thoroughly
understand how all this works, well enough to provide good support for
it to your customers.  Based on the questions you are asking, I suspect
that you are not yet ready to do that.

Here is a quick and dirty create-toppanel-session.sh script that sets up
a new session type Lubuntu-toppanel which has the panel on top, and it
is independent of the default Lubuntu session regarding lxpanel
configuration.

Ten lines of shell script (plus comments).  This kind of basic DE
customization is pretty straightforward, as long as you understand what
is happening within X and LXDE reasonably well.

Please now do what I suggested to others before you who have expressed
interest in making "pretty" Lubuntu desktop setups -- work together, as
a team, and document your work clearly on a wiki page as part of the
Lubuntu community.  That way, others can benefit from it, and in future
some of your work stands a chance of being incorporated back into the
official Lubuntu releases.  Otherwise all this prettiness will not
"reach more users" on any worthwhile scale.

Some lines of the script are long and will word-wrap in this email...

Jonathan
-----------------------------------------

#!/bin/bash
# create-toppanel-session.sh -- creates an Lubuntu-toppanel session type
# Author: Jonathan Marsden <[email protected]>

SUFFIX=${1:-toppanel} # So session will be named is Lubuntu-toppanel by
default, Lubuntu-$1 if $1 supplied

# Creat new xsession .desktop file
sed -e "s/\([Ll]\)ubuntu/\1ubuntu-$SUFFIX/g"
/usr/share/xsessions/Lubuntu.desktop |sudo tee
/usr/share/xsessions/Lubuntu-$SUFFIX.desktop >/dev/null

# Create new script to start session
sed -e "s/-s Lubuntu -e/-s Lubuntu-$SUFFIX -e/" /usr/bin/startlubuntu
|sudo tee /usr/bin/startlubuntu-$SUFFIX >/dev/null
sudo chmod 755 /usr/bin/startlubuntu-$SUFFIX

# Create autostart and desktop.conf files for new lxsession
sudo mkdir -p /etc/xdg/lxsession/Lubuntu-$SUFFIX
sed -e "s/Lubuntu/Lubuntu-$SUFFIX/g"
/etc/xdg/lxsession/Lubuntu/autostart |sudo tee
/etc/xdg/lxsession/Lubuntu-$SUFFIX/autostart >/dev/null
sudo cp -p /etc/xdg/lxsession/Lubuntu/desktop.conf
/etc/xdg/lxsession/Lubuntu-$SUFFIX/desktop.conf

# Create lxpanel profile for new session -- should really be done at
session startup not in this script!
# Note edit to panel file to move panel to top edge of screen.  This is
just an example customization.
[ -d ~/.config/lxpanel/Lubuntu-$SUFFIX/panels ] || mkdir -p
~/.config/lxpanel/Lubuntu-$SUFFIX/panels
[ -f ~/.config/lxpanel/Lubuntu-$SUFFIX/config ] || cp -p
/usr/share/lxpanel/profile/Lubuntu/config
~/.config/lxpanel/Lubuntu-$SUFFIX/config
[ -f ~/.config/lxpanel/Lubuntu-$SUFFIX/panels/panel ] || sed -e
s/edge=bottom/edge=top/ /usr/share/lxpanel/profile/Lubuntu/panels/panel
|tee ~/.config/lxpanel/Lubuntu-$SUFFIX/panels/panel >/dev/null

-- 
Mailing list: https://launchpad.net/~lubuntu-comms
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~lubuntu-comms
More help   : https://help.launchpad.net/ListHelp

Reply via email to