에서
protochaos님이 만들어 주신 스크립트를 이용했다.
--- url-decoding.desktop
1
2
3
4
5
6
7
8
9
10
|
[Desktop Entry]
Type=Service
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=all/all;
Actions=URL-decoding;
[Desktop Action URL-decoding]
Name=URL-decoding
Exec=/usr/local/bin/url-decoding.sh %U
#Icon=utilities-terminal
|
--- url-decoding.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/bash
## http://ubuntu.or.kr/viewtopic.php?p=114278#p114278
for f in "$@";
do
nf=${f//%/\\\\x}
[ "$f" = "$nf" ] && continue
eval "nf=$nf"
echo -e "$nf"|iconv -f cp949 &>/dev/null
if [ $? -eq 0 ]; then
nf=$(echo -e "$nf"|iconv -f cp949)
else
nf=$(echo -e "$nf")
fi
mv "$f" "$nf"
done
|
-- 설치
1
2
|
$ sudo cp url-decoding.desktop /usr/share/kde4/services/ServiceMenus/
$ sudo cp url-decoding.sh /usr/local/bin
|
[동작]에서 사용이 가능하다~~
댓글 없음:
댓글 쓰기