Bug 1140 - kde4-firstsetup.sh runs every time I boot
: kde4-firstsetup.sh runs every time I boot
Product: Desktop Bugs
Classification: ROSA Desktop
Component: Main Packages
: Fresh
: All Linux
: Normal normal
: ---
Assigned To: ROSA Linux Bugs
: ROSA Linux Bugs
Depends on:
  Show dependency treegraph
Reported: 2012-11-30 15:38 MSK by Denis Koryavov
Modified: 2014-09-04 11:23 MSD (History)
5 users (show)

See Also:
RPM Package: mandriva-kde4-config-common-2012-20-rosa2012.1.noarch
Bad POT generating:


Note You need to log in before you can comment on or make changes to this bug.
Description Denis Koryavov 2012-11-30 15:38:34 MSK
Description of problem:

I suppose that kde4-firstsetup.sh script should be run only 1 time, after that I suppose that it should be removed or disabled. Maybe it is one of the several factors because of which KDE starts so long. 

How reproducible:

Steps to Reproduce:
1. Open folder XDG_DOWNLOADS_DIR. See a PDF file "Welcome.pdf". Remove it. 
2. Log out and login and open folder XDG_DOWNLOADS_DIR again. You will see
a link to Welcome.pdf, because it will be created by kde4-firstsetup.sh again.
Comment 1 Denis Koryavov 2012-11-30 15:39:31 MSK
I suppose this is a blocker?
Comment 2 Alexander Burmashev 2012-11-30 16:47:37 MSK
Not sure if this is a blocker, since it may be an expected behaviour. The fact that we did not know about it does not change it )
Comment 3 Denis Koryavov 2012-11-30 21:14:21 MSK
Feel free to change severity of this bug if you think different. But, because we creating a link in the XDG_DOWNLOADS_DIR to a PDF document now, it may  annoying users. :)
Comment 4 Ural Mullabaev 2012-12-01 11:55:34 MSK
I've added FirstRun parameter to the global KDE config file ($HOME/.kde/share/config/kdeglobals) in the Mandriva group. Now script checks this parameter and creates link to StackFolder documentation only once.
You can use this parameter for checking another actions of script.
Comment 5 Denis Koryavov 2012-12-01 12:13:41 MSK
I suggest to use this parameter not only for our sub-script in kde4-firstrun, but for this script.
Comment 6 Aleksandr Kazantcev 2012-12-01 13:03:30 MSK
This script reset XDG environments. It's need not only in first run, but every time for set properly path. If we drop it, works in parallel session in other DE may broke KDE4 XDG settings.

Script works quickly and not able increase boot time (0.5 sec max).
Comment 7 Dmitry 2012-12-13 09:49:47 MSK
So, please rename it for understanding in a future.
Comment 8 Alexander Burmashev 2012-12-13 12:57:50 MSK
This should be fixed but only after all stuff from this sh script that *must* be executed each time is moved to another package.
Comment 9 Denis Koryavov 2012-12-13 13:00:31 MSK
Well, I tried to remove this script and my system works perfectly without this script. So....
Comment 10 Alexander Burmashev 2012-12-13 13:05:48 MSK
i guess you are right, but noone else tested it =) Are we ready to take risk and remove it ?
Comment 11 Denis Koryavov 2012-12-13 13:20:10 MSK
No, but I suggest to test this variant widely. If we'll find that everything will work (and I practically sure that everything will work) we can fix this bug in RP1.