Advertisement
vf2nsr

Untitled

Apr 13th, 2012
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. [Enviroment]
  2. KDEROOT=%Pal:AppDir%\amarok
  3. PATH=%Pal:AppDir%\amarok\bin;%PATH%
  4. HOME=%Pal:AppDir%\amarok\home
  5. KDEHOME=%Pal:AppDir%\amarok\home
  6. KDESYCOCA=%Pal:AppDir%\amarok\home\kdesycoca
  7. SET XDG_CONFIG_HOME=%Pal:AppDir%\amarok\home\.config
  8. SET XDG_DATA_HOME=%Pal:AppDir%\amarok\home\.local\share
  9. SET XDG_CACHE_HOM=%Pal:AppDir%\amarok\home
  10.  
  11. ; SET APPLICATION=
  12.  
  13. ; IF NOT "%1" == "" (
  14. ; SET APPLICATION=%1
  15. ; SHIFT
  16. ; )
  17.  
  18. ; IF EXIST %KDEROOT%\firstrun GOTO :INSTALL
  19. ; IF NOT EXIST %KDEROOT%\home GOTO :INSTALL
  20.  
  21. ; :RUN
  22.  
  23. ; IF "%APPLICATION%" == "" (
  24. ; CALL bin\amarok.exe
  25. ; ) ELSE (
  26. ; CALL %APPLICATION% %1 %2 %3 %4 %5 %6 %7 %8 %9
  27. ; )
  28.  
  29. ; GOTO :EOF
  30.  
  31.  
  32. ; :INSTALL
  33. ; echo install
  34. ; IF NOT EXIST %KDEROOT%\home MKDIR %KDEROOT%\home
  35. ; IF EXIST %KDEROOT%\firstrun DEL firstrun
  36.  
  37.  
  38.  
  39. ; echo *******************************************************************************
  40. ; echo package: %0
  41. ; echo *******************************************************************************
  42.  
  43. ; SET quitnow=False
  44. ; ::for %%i in ( kioslave.exe kded4.exe ) DO (
  45. ; :: tasklist /NH /FI "IMAGENAME eq %%i" | find "%%i" > "Nul" && (
  46. ; :: echo error: found %%i running. please kill this process!
  47. ; :: SET quitnow=True
  48. ; :: )
  49. ; ::)
  50.  
  51. ; if %quitnow% equ True (
  52. ; echo error: one or more programs are running that shouldn't run.
  53. ; echo please close them before restarting this script
  54. ; goto :eof
  55. ; )
  56.  
  57. ; if not `"bin\update-mime-database.exe --help"` equ "" (
  58. ; bin\update-mime-database "%CD%\share\mime"
  59. ; ) else (
  60. ; echo error: update-mime-database wasn't found.
  61. ; echo please check for correct installation
  62. ; )
  63.  
  64. ; if not `"bin\kbuildsycoca4.exe --help"` equ "" (
  65. ; bin\kbuildsycoca4 --noincremental
  66. ; ) else (
  67. ; echo error: kbuildsycoca4 wasn't found.
  68. ; echo please check for correct installation
  69. ; )
  70.  
  71.  
  72. ; GOTO :RUN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement