Registered Member
|
Hi,
I have created a .js file in /usr/share/test/kde4-profile/default/share/apps/plasma-desktop/init/ If I run this script in "desktop console", it runs perfectly and I made sure it's running as the last script in line. I then created /etc/kde4rc:
After a lonout/login, I verified that this path is known by kde:
Of the test user I made sure the .kde directory is empty. After a logout/login (or even reboot), the desktop is not changed. If I create a symlink in /usr/share/kde4/apps/plasma-desktop/init/ to this script, it runs fine after a logout/login. Does anybody know why my script isn't picked up and executed from the custom directory? [EDIT] Running KDE 4.8.4 on Debian testing Script: 20-testLayout.js
It should run after these are finished: /usr/share/kde4/apps/plasma-desktop/init/00-defaultLayout.js /usr/share/kde4/apps/plasma-desktop/init/10-desktop-base.js |
Registered Member
|
Unfortunately I underestimated the flexibility of the plasma desktop and came up with the script above which changes the default created desktop to suit my needs. After many, many tests I concluded that my script was already running while the activities object was not yet created which resulted in mostly the default desktop, sometimes my scripted desktop and sometimes even just my scripted panel.
I changed the script to act as if there is no desktop activity and no panels, as if it was the first script running...and that seemed to work, even without changing the name of the script (thus running as last):
|
Registered Member
|
After a reboot I had the same problem.
It seems that there is a difference between logout/login and reboot. I ended up diverting the two default scripts mentioned above. Crude, but functional. |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]