apply FSL(Flora Software License)
[apps/core/preloaded/music-player.git] / debian / org.tizen.music-player.postinst
1 #!/bin/sh
2
3 if [ ${USER} = "root" ] 
4 then
5
6 # 5000 is inhouse user id  5   
7 # do not use relative path  6 /usr/bin/vconftool set -t int db/setting/music-player/menu 7 -g 6514  
8 chown -R 5000:5000 /opt/apps/org.tizen.music-player/data 
9
10 /usr/bin/vconftool set -t int db/setting/music-player/menu 7 -g 6514
11
12 /usr/bin/vconftool set -t bool db/setting/music-player/se_change 1 -g 6518
13 /usr/bin/vconftool set -t bool db/setting/music-player/menu_change 1 -g 6518
14 /usr/bin/vconftool set -t bool db/setting/music-player/surround_ch_state 0 -g 6518
15 /usr/bin/vconftool set -t int db/setting/music-player/eq_val 0 -g 6518
16 /usr/bin/vconftool set -t int db/setting/music-player/effect_val 0 -g 6518
17 /usr/bin/vconftool set -t int db/setting/music-player/eq_custom_1 0 -g 6518
18 /usr/bin/vconftool set -t int db/setting/music-player/eq_custom_2 0 -g 6518
19 /usr/bin/vconftool set -t int db/setting/music-player/eq_custom_3 0 -g 6518
20 /usr/bin/vconftool set -t int db/setting/music-player/eq_custom_4 0 -g 6518
21 /usr/bin/vconftool set -t int db/setting/music-player/eq_custom_5 0 -g 6518
22 /usr/bin/vconftool set -t int db/setting/music-player/eq_custom_6 0 -g 6518
23 /usr/bin/vconftool set -t int db/setting/music-player/eq_custom_7 0 -g 6518
24 /usr/bin/vconftool set -t int db/setting/music-player/eq_custom_8 0 -g 6518
25
26 /usr/bin/vconftool set -t int memory/music/state 0 -i -g 6518
27 /usr/bin/vconftool set -t int memory/music/process_state 0 -i -g 6518
28 /usr/bin/vconftool set -t int memory/music/album_art 0 -i -g 6518
29
30 /usr/bin/vconftool set -t string memory/music/pos "00:00" -i -g 6518
31 /usr/bin/vconftool set -t double memory/music/progress_pos 0.0 -i -g 6518
32 /usr/bin/vconftool set -t bool memory/music/play_clicked 1 -i -g 6518
33 /usr/bin/vconftool set -t bool memory/music/pause_clicked 1 -i -g 6518
34 /usr/bin/vconftool set -t bool memory/music/prev_pressed 1 -i -g 6518
35 /usr/bin/vconftool set -t bool memory/music/prev_released 1 -i -g 6518
36 /usr/bin/vconftool set -t bool memory/music/next_pressed 1 -i -g 6518
37 /usr/bin/vconftool set -t bool memory/music/next_released 1 -i -g 6518
38
39 /usr/bin/vconftool set -t bool db/music/menu/shuffle 1 -i -g 6518
40 /usr/bin/vconftool set -t int db/music/menu/repeat 0 -i -g 6518
41
42
43 else
44
45 /usr/bin/vconftool set -t int db/setting/music-player/menu 7
46
47 /usr/bin/vconftool set -t bool db/setting/music-player/se_change 1
48 /usr/bin/vconftool set -t bool db/setting/music-player/menu_change 1
49 /usr/bin/vconftool set -t bool db/setting/music-player/surround_ch_state 0
50 /usr/bin/vconftool set -t int db/setting/music-player/eq_val 0
51 /usr/bin/vconftool set -t int db/setting/music-player/effect_val 0
52 /usr/bin/vconftool set -t int db/setting/music-player/eq_custom_1 0
53 /usr/bin/vconftool set -t int db/setting/music-player/eq_custom_2 0
54 /usr/bin/vconftool set -t int db/setting/music-player/eq_custom_3 0
55 /usr/bin/vconftool set -t int db/setting/music-player/eq_custom_4 0
56 /usr/bin/vconftool set -t int db/setting/music-player/eq_custom_5 0
57 /usr/bin/vconftool set -t int db/setting/music-player/eq_custom_6 0
58 /usr/bin/vconftool set -t int db/setting/music-player/eq_custom_7 0
59 /usr/bin/vconftool set -t int db/setting/music-player/eq_custom_8 0
60
61 /usr/bin/vconftool set -t int memory/music/state 0
62 /usr/bin/vconftool set -t int memory/music/process_state 0
63 /usr/bin/vconftool set -t int memory/music/album_art 0
64
65 /usr/bin/vconftool set -t string memory/music/pos "00:00" 
66 /usr/bin/vconftool set -t double memory/music/progress_pos 0.0
67 /usr/bin/vconftool set -t bool memory/music/play_clicked 1
68 /usr/bin/vconftool set -t bool memory/music/pause_clicked 1
69 /usr/bin/vconftool set -t bool memory/music/prev_pressed 1
70 /usr/bin/vconftool set -t bool memory/music/prev_released 1
71 /usr/bin/vconftool set -t bool memory/music/next_pressed 1
72 /usr/bin/vconftool set -t bool memory/music/next_released 1
73
74 /usr/bin/vconftool set -t bool db/music/menu/shuffle 1
75 /usr/bin/vconftool set -t int db/music/menu/repeat 0
76
77 fi
78
79