WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Endlessly growing files in ~/.wmx/Applications  (Read 2515 times)

Offline tpchan

  • Newbie
  • *
  • Posts: 5
Endlessly growing files in ~/.wmx/Applications
« on: August 17, 2010, 11:12:22 PM »
I have TC v3.0 installed to a netbook hard drive. tce dir is set to /mnt/sda2. Firefox is installed as an "On boot" application. Backup is turned on.

To see and repeat the problem, I just boot TC 3.0 from the hard drive, open aterm and do "cat ~/.wmx/Applications/Firefox" and I see:

#!/bin/sh
exec /usr/local/firefox-official/firefox
#!/bin/sh
exec /usr/local/firefox-official/firefox
#!/bin/sh
exec /usr/local/firefox-official/firefox

Click the exit button and choose reboot and my backup choice is already enabled. Now start TC 3.0 again and now in aterm do "cat ~/.wmx/Applications/Firefox" and now the code is repeated there four times. All of my files in ~/.wmx/Applications/ have the same problems. Every time I shutdown or reboot, then the next time I start up TC, then the files in ~/.wmx/Applications grow by one instance of shell block code (#!/bin/sh LF exec /usr/local/*).

This behavior is duplicated EVERY time and is still present in TC 3.1rc1.

I suspect TC is seeing that I have some "On Boot" applications chosen and just appends to the respective ~/.wmx/Applications file every time without checking to see what's in there already or if the files already exist.

I also suspect most TC users are using it from USB or cdroms and not bothering to install to hard drives, otherwise someone else would have noticed this by now.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Endlessly growing files in ~/.wmx/Applications
« Reply #1 on: August 18, 2010, 12:20:03 AM »
.wmx should be in your /opt/.xfiletool.lst  Having such will prevent that from occurring.

I would suggest to boot "base norestore" to see the default /opt/.xfiletool.lst and compare with yours.
10+ Years Contributing to Linux Open Source Projects.

Offline tpchan

  • Newbie
  • *
  • Posts: 5
Re: Endlessly growing files in ~/.wmx/Applications
« Reply #2 on: August 18, 2010, 12:53:57 AM »
.wmx IS in my /opt.xfiletool.lst. This bug still happens all the time. I've also noticed that the duplicated blocks of code are also being repeated in .wmx/SystemTools

I checked in my /opt/filetools.lst and it contains home/tc, so could this be a problem ?

Besides I am viewing the contents of mydata.tgz and it does NOT contain any .wmx files.

So this bug is probably some kind of looping error in what ever code is creating the .wmx/Applications and .wmx/SystemTools entries.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Endlessly growing files in ~/.wmx/Applications
« Reply #3 on: August 18, 2010, 04:18:17 AM »
So both backup and persistent home? I see.

A simple fix would be

Quote
--- flwm_topside_menu_common~   2010-08-18 11:16:05.000000000 +0300
+++ flwm_topside_menu_common    2010-08-18 11:16:18.000000000 +0300
@@ -20,7 +20,7 @@
   }
 }
 END {
-  print "#!/bin/sh" >> output"/"name
+  print "#!/bin/sh" > output"/"name
   if ( terminal == "true" ) {
      print "exec aterm +tr +sb -T \""name"\" -e " exec > output"/"name
   } else {
The only barriers that can stop you are the ones you create yourself.

Offline tpchan

  • Newbie
  • *
  • Posts: 5
Re: Endlessly growing files in ~/.wmx/Applications
« Reply #4 on: August 18, 2010, 08:50:58 AM »
Thanks curaga, editing flwm_topside_menu_common solved my problem!

I'm not quite sure how I've managed to enable both backup and persistent home on my TC 3.0 hard drive install, but I'll try to read up on how to choose one or the other.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Endlessly growing files in ~/.wmx/Applications
« Reply #5 on: August 18, 2010, 09:46:23 AM »
FYI Even with a persistent home, .xfiletool.lst is processed via normal shutdown procedure so both home in ram or persisted would have not experience growing .wmx items under normal operation.
10+ Years Contributing to Linux Open Source Projects.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Endlessly growing files in ~/.wmx/Applications
« Reply #6 on: August 18, 2010, 02:35:34 PM »
If a backup was done, and home is present in .filetool.lst, looks like the cleanup is currently skipped:

Quote
if [ ! -e /tmp/backup_done ] || ! grep -q "^home" /opt/.filetool.lst; then

Both a persistent and a backed up home is a rare scenario though.


Anyway, I gleaned the fix above from the awk manpage; is there a reason to use >> there?
The only barriers that can stop you are the ones you create yourself.