Author Topic: Problem with lxcursor  (Read 1820 times)

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Problem with lxcursor
« Reply #15 on: September 20, 2011, 06:11:23 AM »
Since installation, have you made any changes to system files?   

No, not that I'm aware of unless any of the system config options from gui have changed anything. I have done very little config on this system at all.
 
You say these are in /tmp, rather than in /home/<user>/tmp?     
Can you open /home/<user>/tmp, click View > Show Hidden in PCManFM and open the hidden folder /.config/tmp to see if a list is there?   

Yes they are, and I had already checked there with View Hidden set and no there is nothing like these files in the /home/user/tmp. In /home/user/.config/tmp there is a file called lst01 which contains a list of the theme names.

Stuart

The file lst01 is expected. (Check the code I posted previously.)

Unless you can provide more information that can be used to find the problem, the only solution is to use the work-around of deleting those tmp files and use LXAppearance to change cursor themes.     

Offline broadstairs

  • Full Member
  • ***
  • Posts: 121
Re: Problem with lxcursor
« Reply #16 on: September 20, 2011, 06:59:51 AM »
I have just been checking the code in lxcursor and I can see that it does a cd to /tmp at line 25

Code: [Select]
# define GUI
cd /tmp
echo 'XX=$(zenity --title "Select a Cursor Theme" --text "Please select the new cursor theme or press Cancel to quit.\nNOTE: you must logout to apply the new cursor theme\!" --list --height 300 --radiolist --column "Select" --column "Cursor Theme" ' > tt1
cat $LIST |sed 's/^/FALSE /' >> tt1
echo ');' >> tt1 && cat tt1 |tr "\n" " " > tt2 && echo "#"'!/bin/bash' > tt0
cat tt2 >> tt0 && echo ' ' >> tt0 && echo 'echo $XX > tt3' >> tt0
chmod u+x tt0 && /tmp/tt0 && LXC_SELECT=`less tt3`

I have modified the code to

Code: [Select]
# define GUI
cd /home/janie/.config/tmp
echo 'XX=$(zenity --title "Select a Cursor Theme" --text "Please select the new cursor theme or press Cancel to quit.\nNOTE: you must logout to apply the new cursor theme\!" --list --height 300 --radiolist --column "Select" --column "Cursor Theme" ' > tt1
cat $LIST |sed 's/^/FALSE /' >> tt1
echo ');' >> tt1 && cat tt1 |tr "\n" " " > tt2 && echo "#"'!/bin/bash' > tt0
cat tt2 >> tt0 && echo ' ' >> tt0 && echo 'echo $XX > tt3' >> tt0
chmod u+x tt0 && ./tt0 && LXC_SELECT=`less tt3`

see the cd line and the last line to execute tt0 has changed to ./tt0 and it all now works as the files are created in the users directory tree.
Note that the files are still not deleted but it does not affect the outcome if you re-run it. The comments at the start of lxcursor indicate version 0.2.

Stuart
« Last Edit: September 20, 2011, 07:04:50 AM by broadstairs »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Problem with lxcursor
« Reply #17 on: September 20, 2011, 08:04:02 AM »
That change will make only janie able to effectively use lxcursor. Try using
Code: [Select]
cd $HOME/.config/tmp/ instead.    

That may cause problems with reading /tmp/tt0 et al. If it does, try
Code: [Select]
cd $HOME/tmp     
« Last Edit: September 20, 2011, 08:13:35 AM by Neal »

Offline broadstairs

  • Full Member
  • ***
  • Posts: 121
Re: Problem with lxcursor
« Reply #18 on: September 20, 2011, 08:10:09 AM »
That change will make only janie able to effectively use lxcursor. Try using
Code: [Select]
cd $HOME/.config/tmp/ instead.     

Sorry yes I realised that after I had posted and forgot to come back and change it.

I think we must have different versions of lxcursor installed since you did not have a problem.

Stuart

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Problem with lxcursor
« Reply #19 on: September 20, 2011, 08:17:08 AM »
I think we must have different versions of lxcursor installed since you did not have a problem.

Stuart

No. There is only one version available -0.2. I'd know, if any other were available.     

Offline broadstairs

  • Full Member
  • ***
  • Posts: 121
Re: Problem with lxcursor
« Reply #20 on: September 20, 2011, 08:46:27 AM »
I think we must have different versions of lxcursor installed since you did not have a problem.

Stuart

No. There is only one version available -0.2. I'd know, if any other were available.     

So how come my original code does not work and your one does, if we both had 0.2 then I'd expected the code to be the same as mine was before I edited it and therefore exhibited the problem. BTW mine has a comment line in it which says pinoc changed the code, dont know if that makes a difference?

Stuart

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Problem with lxcursor
« Reply #21 on: September 20, 2011, 08:59:47 AM »
I think we must have different versions of lxcursor installed since you did not have a problem.

Stuart

No. There is only one version available -0.2. I'd know, if any other were available.     

So how come my original code does not work and your one does, if we both had 0.2 then I'd expected the code to be the same as mine was before I edited it and therefore exhibited the problem. BTW mine has a comment line in it which says pinoc changed the code, dont know if that makes a difference?

Stuart

We have been trying to figure out why it has exhibited this behaviour, haven't we?

Yes, pinoc worked on lxcursor. I asked him to help me with it. It is not unusual for 2 people to team up on an app. The advantage is that you have 2 sets of eyes reading the code and two minds working on it. That makes a big difference.     

Offline broadstairs

  • Full Member
  • ***
  • Posts: 121
Re: Problem with lxcursor
« Reply #22 on: September 20, 2011, 09:13:23 AM »
We have been trying to figure out why it has exhibited this behaviour, haven't we?

Yes, pinoc worked on lxcursor. I asked him to help me with it. It is not unusual for 2 people to team up on an app. The advantage is that you have 2 sets of eyes reading the code and two minds working on it. That makes a big difference.     

Yes I know that and unless I completely misunderstand what has been said about you not having a problem, I am trying to understand is why my code is different from the code you are running.

I cant see why I should have code which is different from anyone else. What worries me is that if my code is different to what should be there what else is different and what kinds of problems am I stacking up for the future. It makes no sense for me to have version 0.2 and you to have version 0.2 and they both be different. That's what I am trying to understand, I know why my code does not work as it was and how we fixed it, but it does not explain why I have different code?

Stuart

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Problem with lxcursor
« Reply #23 on: September 20, 2011, 09:44:07 AM »
We have been trying to figure out why it has exhibited this behaviour, haven't we?

Yes, pinoc worked on lxcursor. I asked him to help me with it. It is not unusual for 2 people to team up on an app. The advantage is that you have 2 sets of eyes reading the code and two minds working on it. That makes a big difference.     

Yes I know that and unless I completely misunderstand what has been said about you not having a problem, I am trying to understand is why my code is different from the code you are running.

I cant see why I should have code which is different from anyone else. What worries me is that if my code is different to what should be there what else is different and what kinds of problems am I stacking up for the future. It makes no sense for me to have version 0.2 and you to have version 0.2 and they both be different. That's what I am trying to understand, I know why my code does not work as it was and how we fixed it, but it does not explain why I have different code?

Stuart

I see. You miss the point. There is only one version of lxcursor available -0.2. If it is different on your machine, it is because you changed the code. In other words, lxcursor-0.2 is lxcursor-0.2, regardless of who installs it.
The difference is in the results, not the code.

First point of difference is hardware. My machine is:   
AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ @2500.000 MHz [Athlon64/Opteron]
C61 [GeForce 6150SE nForce 430] video
Hp w1907 Monitor - 1440x900
3GB RAM DIMM DDR2 800 MHz (1.2 ns)

That a short list. To get info on your hardware, as root run lshw in your terminal or install systeminfo and run lshw from it.     

Second point of difference is in any changes made to system files. /etc/fstab is one of the files that it seems people frequently make changes to.     

Offline broadstairs

  • Full Member
  • ***
  • Posts: 121
Re: Problem with lxcursor
« Reply #24 on: September 20, 2011, 10:41:27 AM »
Sorry but I dont see how the hardware makes any difference to how lxcursor executes. Your hardware is similar to my main desktop PC and I run KDE on that, which is what I'd do on the laptop is it were powerful enough which it is not, it's a 13 year old 1ghz celeron with 512mb memory and a 120gb h/disk. I only need it to run Firefox and Thunderbird, pretty much nothing else will be done with it.

I have checked the code on the DVD Live install and the code I listed without my changes is the same. That code when it executes must put all the files created in the system's /tmp directory and it will create those files with the default access for the user, so when a second user tries to run the same code there can only be one outcome and that is the same experience that I had.

However you told me earlier that you do not have the problem. That can only mean one of two things, first that the code which generates these files is different (I assume that is not the case as you say you have 0.2) or second that on logout or shutdown you run some cleanup code which deletes these files from /tmp. I presume you do the latter then fine but this is not how a vanilla system installs.

As far as I am concerned the code in lxcursor is wrong, now I've fixed my copy and it's working that is end of problem.

Stuart

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Problem with lxcursor
« Reply #25 on: September 20, 2011, 11:11:58 AM »
Sorry but I dont see how the hardware makes any difference to how lxcursor executes. Your hardware is similar to my main desktop PC and I run KDE on that, which is what I'd do on the laptop is it were powerful enough which it is not, it's a 13 year old 1ghz celeron with 512mb memory and a 120gb h/disk. I only need it to run Firefox and Thunderbird, pretty much nothing else will be done with it.

Hardware can make a big difference.

Quote
I have checked the code on the DVD Live install and the code I listed without my changes is the same. That code when it executes must put all the files created in the system's /tmp directory and it will create those files with the default access for the user, so when a second user tries to run the same code there can only be one outcome and that is the same experience that I had.

LiveDVD? What liveDVD? From where? We don't produce a liveDVD of PXLinuxOS-LXDE. The only PCLinuxOS version that comes as a liveDVD is Full Monty, and it is KDE, not LXDE.     

Quote
However you told me earlier that you do not have the problem. That can only mean one of two things, first that the code which generates these files is different (I assume that is not the case as you say you have 0.2) or second that on logout or shutdown you run some cleanup code which deletes these files from /tmp. I presume you do the latter then fine but this is not how a vanilla system installs.

Making such a presumption about me is insulting. If I had done that, I would have said so. The clean up I do is to run bleachbit once or twice a week. I recommended that to you (reply #3).


Quote
As far as I am concerned the code in lxcursor is wrong, now I've fixed my copy and it's working that is end of problem.

Stuart

You can easily remove lxcursor, as it seems you think I coded in something to cause you to have a problem. I created no such code. The same code is used in every install, and you are the only one to have made such a complaint.


Offline Hootiegibbon

  • Hero Member
  • *****
  • Posts: 4151
Re: Problem with lxcursor
« Reply #26 on: September 20, 2011, 11:58:57 AM »
broadstairs,

Can you open a terminal and post the result of 'uname -a'

Thanks

Jase


I am Hootiegibbon, undisputed champion fo the typo

My .dotfiles

Offline broadstairs

  • Full Member
  • ***
  • Posts: 121
Re: Problem with lxcursor
« Reply #27 on: September 20, 2011, 02:00:07 PM »
Neal what I downloaded was at from here which is a bootable DVD of LXDE, maybe you dont call it a Live DVD but that is what I downloaded and installed. Please tell me what it is if not a 'live dvd' OK so maybe the terminology is wrong but that is what I booted and then installed.

Also here is where you told me you dont have a problem, OK no detail as to how you did it but certainly left me to understand that it worked for you and not for me. I apologise if you think I have insulted you but I was left with a clear impression that you could not recreate the problem. I would have been very happy to be shown I had done something wrong, but at no time has anyone given me any idea as to what I could have done wrong. After all this was a new install on a laptop and not really any customisation at all except for wireless lan, setting up two users and copying over Firefox and Thunderbird configs, plus changing the cursor theme.

Sorry but code is code and no matter what processor you run it on the code can only execute in one way, otherwise nothing would work. It will not matter whether the system running this code is a 13 year old Celeron or a new AMD x4 Phenom, code is code and can only execute one way and this applies to scripts like this (assuming we both have the same executor installed, which we should since this is a new LXDE install and up to date).

Jase the output is

Code: [Select]
Linux Crowhill4.laptop 2.6.38.8-pclos1.bfs #1 SMP PREEMPT Sat Jun 4 04:13:21 CDT 2011 i686 i686 i386 GNU/Linux

Stuart

Online daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3731
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: Problem with lxcursor
« Reply #28 on: September 20, 2011, 02:06:15 PM »
Why you not use LXDECC > GTK and Icon Theme > Mouse Cursors ?

Works well, and need no reboot...

Offline broadstairs

  • Full Member
  • ***
  • Posts: 121
Re: Problem with lxcursor
« Reply #29 on: September 20, 2011, 03:07:39 PM »
Why you not use LXDECC > GTK and Icon Theme > Mouse Cursors ?

Works well, and need no reboot...

Yes I know that now, but being a new user to LXDE I was not aware until later that it also did mouse themes because it does not say so on the screen, only GTK & ICONs.

In my view I did what any new user would do and wanting to change the mouse pointer I opted for the direct option which says you can change the mouse theme. I then found that it would not work on a second user! Which is where we came in on this thread.

Stuart