WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: LXDE  (Read 31668 times)

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: LXDE
« Reply #45 on: November 16, 2009, 08:39:15 AM »
I've noticed in mounted extensions that if you use "cp -p" things work as expected, but "cp -a" produces symlinks

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: LXDE
« Reply #46 on: November 16, 2009, 09:08:09 AM »
-L is not default?

It was my expectation, but it isn't. You can test it easily copying a file of a mounted extension with -L and without it. To force a real file copy -L is needed explicitely.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: LXDE
« Reply #47 on: November 16, 2009, 10:00:41 AM »
"cp -p" is what I use, but you first have to either check for the existence of the target and copy if it does not exist, or first delete the target.  That is unless a force option is used.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: LXDE
« Reply #48 on: November 16, 2009, 10:04:34 AM »
"cp -p" is what I use, but you first have to either check for the existence of the target and copy if it does not exist, or first delete the target.  That is unless a force option is used.

I'm checking the existence of the destination directory and file. Now it works fine with -L option. The key message is that these scripts require more testing :)
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Kingdomcome

  • Sr. Member
  • ****
  • Posts: 286
Re: LXDE
« Reply #49 on: November 16, 2009, 06:44:00 PM »
I'm checking the existence of the destination directory and file. Now it works fine with -L option. The key message is that these scripts require more testing :)

That is why we are here.  Many hands make light work  ;D

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: LXDE
« Reply #50 on: November 18, 2009, 07:50:00 AM »
Just measured, running LXDE with all extensions mounted the overall used memory is 45M (TC 2.6rc2)
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
Re: LXDE
« Reply #51 on: November 18, 2009, 10:09:45 AM »
Just measured, running LXDE with all extensions mounted the overall used memory is 45M (TC 2.6rc2)

That is amazing. Thanks for your efforts.
big pc man

Offline Kingdomcome

  • Sr. Member
  • ****
  • Posts: 286
Re: LXDE
« Reply #52 on: November 18, 2009, 04:53:52 PM »
To make sure that LXDE starts and not openbox, use 'tinycore desktop=lxde' boot option. You can add 'noicons' also to get rid of wbar which is not visible so no reason to run it.

Correct me if I'm wrong, but it appears to me that simply renaming /usr/local/tce.installed/zzzzz_LXDE to LXDE fixes the need for the desktop bootcode. This is on MC_2.6rc2 if that makes a difference.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: LXDE
« Reply #53 on: November 18, 2009, 05:20:25 PM »
To make sure that LXDE starts and not openbox, use 'tinycore desktop=lxde' boot option. You can add 'noicons' also to get rid of wbar which is not visible so no reason to run it.

Correct me if I'm wrong, but it appears to me that simply renaming /usr/local/tce.installed/zzzzz_LXDE to LXDE fixes the need for the desktop bootcode. This is on MC_2.6rc2 if that makes a difference.

Not sure. Originally it was called LXDE, but was executed before openbox, so openbox overwrote the desktop setting. Renaming it zzz... was working on some machine and zzz_ was executed after openbox. However I have a PC where it doesn't work. Actually I do not know how these startup scripts are executed :(
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Kingdomcome

  • Sr. Member
  • ****
  • Posts: 286
Re: LXDE
« Reply #54 on: November 18, 2009, 05:33:27 PM »
I did some quick testing in a VM.  first trying to modify the openbox startup script to not overwrite /etc/sysconfig/desktop if it contained "lxde" and I got an error message during boot saying that /etc/sysconfig/desktop was non-existent which led me to believe that the openbox startup script was running before the lxde script.  so I then tried renaming the lxde script as previously suggested, and now I am seeing lxde after booting with no bootcodes. This was tested by unpacking LXDE.tcz, renaming the script, repacking and then rebooting, other mounted extensions included VBox guest additions, xorg, and nano, for the record.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: LXDE
« Reply #55 on: November 18, 2009, 08:13:37 PM »
May be a little hackish, but openbox's startup script could contain something like this:

Code: [Select]
#!/bin/sh

ls `cat /opt/.tce_dir` | grep "LXDE" || echo "openbox" > /etc/sysconfig/desktop



And the startup scripts are executed with the same dependency logic as before, deps first for those that have a dep file.  The order hasn't changed, they just are run at one time at the end of the extension loading during boot.  Appbrowser startup script processing has not changed, that is each startup script is run right after the extension is loaded, dependencies first of course.
« Last Edit: November 18, 2009, 08:16:41 PM by Jason W »

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: LXDE
« Reply #56 on: November 18, 2009, 09:21:45 PM »
And also, naming the startup script to zzzz_appname will not work as the startup script must be the same name as the extension.


Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: LXDE
« Reply #57 on: November 18, 2009, 10:14:37 PM »
I hope junan won't mind, but I took the liberty of adding this to the openbox startup script to allow use of LXDE:

Code: [Select]

ls /usr/local/tce.installed | grep "LXDE" || echo "openbox" > /etc/sysconfig/desktop


That works for during boot, during appbrowser use, and when LXDE and it's deps are downloaded to /optional and LXDE is then loaded at a later time.  Also, I made it PPI compatible while I was in there.  If no LXDE is installed, then openbox gets set as the default WM.

Bmarkus, I went ahead and renamed the startup script to /usr/local/tce.installed/LXDE so it will execute.  All should be well between openbox/LXDE.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: LXDE
« Reply #58 on: November 19, 2009, 03:13:18 AM »
Jason, thanks for adjusting openbox startup. It looks the most realible way. Will update my collection.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Kingdomcome

  • Sr. Member
  • ****
  • Posts: 286
Re: LXDE
« Reply #59 on: November 19, 2009, 10:43:07 AM »
The explanation of the startup script order supports what I reported yesterday.  Since openbox is listed as a dep of LXDE, the openbox script runs before the LXDE script.   That is why my attempts to have the openbox script not write to /etc/sysconfig/desktop if it already contained "lxde" failed, because the LXDE script (nor any other) had not yet written to it.