$ sudo apt-get install libgnome2-bin

먼저 그놈관련 라이브러리를 설치해줍니다.


$ gconftool-2 -t string -s /desktop/gnome/url-handlers/magnet/command "transmission %s"

마그넷링크시 연결할 커맨트를 설정해줍니다.

qbittorrent를 이용한다면 "transmission %s" 대신에 "qbittorrent %u"를 넣어주세요.


gconftool-2 -s /desktop/gnome/url-handlers/magnet/needs_terminal false -t bool

$ gconftool-2 -t bool -s /desktop/gnome/url-handlers/magnet/enabled true


그 후 차례대로 입력해줍시다. 커맨트 실행시 터미널창이 필요한지, 또 마그넷명령어를 활성화할지 설정하는 부분입니다.


sudo pico /usr/bin/xdg-open

다음은 xdg-open파일을 수정합니다. 크롬은 마그넷 주소를 처리할때 xdg-open파일을 이용합니다.

LXDE일때 마그넷이 작동하지 않으므로 GNOME일시 처리할때 함수를 사용하도록 만들겁니다.


#--------------------------------------

# Checks for known desktop environments

# set variable DE to the desktop environments name, lowercase

detectDE()

{

 if [ x"$KDE_FULL_SESSION" = x"true" ]; then DE=kde;

 elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome;

 elif `dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetNameOwner string:org.gnome.SessionManager > /dev/null 2>&1` ; then DE=gnome;

 elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep ' = \"xfce4\"$' >/dev/null 2>&1; then DE=xfce;

 elif [ x"$DESKTOP_SESSION" == x"LXDE" ]; then DE=lxde;

 else DE=""

 fi

}


이부분을 찾아서


detectDE()

{

DE=gnome;

}


이렇게 만들어주세요. 아니면 원래있던 부분을 주석으로 감싸주셔도 됩니다.




출저: https://www.foresightlinux.se/make-chromium-or-chrome-to-open-magnet-links-in-lxde/

출저2: http://network.uniku.ac.id/chromium-or-chrome-to-open-magnet-links-in-lxde/


번호 제목 글쓴이 조회 날짜
238 우분투에서 Windows 7 설치 USB 만들기 file 다른의견 28776 2013.11.10
237 우분투 성능 최적화!! 속도업!! 6 tondekeman 17916 2013.11.02
236 우분투 관리자 권한으로 탐색기 열기 6 카리스마조 17044 2013.10.14
235 리눅스 민트 UIM 입력기 사용하기 3 file 다른의견 16357 2013.10.16
234 우분투에서 프로그램 설치, 제거 하기...... 10 file 언제나당당 14120 2014.01.24
233 우분투에서 한컴오피스2014 사용하기 12 file 언제나당당 13892 2013.11.05
232 우분투 가족 한/영전환키 완벽 해결하기 15 file 카리스마조 13813 2013.10.21
231 VLC 미디어 플레이어 자막 깨짐 해결 file tondekeman 12156 2013.10.10
230 리눅스의 멀티부팅 설치 및 후속 조치 1 file 마니또우 11782 2013.10.14
229 아이피타임 공유기에서 외부 아이피 차단방법 1 file 빨강모자 10877 2014.08.26
228 우분투에서 "카톡"과 "라인" 하기......^^ 9 file 언제나당당 10490 2014.11.22
227 Apache 2.4 컴파일 설치하기 4 컴퓨터매니아 10447 2014.03.31
226 리눅스 부팅용USB 만들기 with Rufus.exe 5 file 마니또우 10360 2013.10.12
225 wubi로 우분투 설치하기 태엽 10219 2013.11.17
224 [Apache 웹서버] 3. MySQL, XE 설치하기 5 file 컴퓨터매니아 9320 2013.11.03
223 ssh 설치하기및 포트 변경 방법 8 미디안 8984 2013.10.30
222 우분투 13.10 User's Manual(완성) 12 file 마니또우 8919 2013.10.25
221 우분투 13.10에서 한영키가 안먹힐 때 5 file 엘레 8913 2013.10.20
220 [Apache 웹서버] 2. Apache, PHP 설치하기 12 file 컴퓨터매니아 8635 2013.10.21
219 설치용 멀티부팅 USB 만들기 6 file 마니또우 8486 2013.11.07

 빠른 글쓰기




   Copyright 2013-2023 LinuxForum