$ 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/


번호 제목 글쓴이 조회 날짜
50 파이어폭스 종료시 탭 자동저장 기능 끄기 2 file 다른의견 2450 2014.11.16
49 리눅스에서 포토샵 사용하기......^^ 3 file 언제나당당 2530 2014.09.24
48 Playonlinux에서 MS-Office2010설치하기... 5 file 옥돌 5679 2014.09.19
47 리눅스에서 윈도용 프로그램 돌리기......^^ 6 file 언제나당당 3150 2014.09.16
46 리눅스에서 파일 보안 삭제하기 컴퓨터매니아 2120 2014.08.30
45 리눅스 용 "skype" 가 4.3으로 판올림 4 모란앵두 2245 2014.08.03
44 중요한 자료를 차등, 증분 백업으로 안전하게 백업하기. 4 file 돌나물 5433 2014.06.15
43 useradd 사용법 컴퓨터매니아 5644 2014.05.22
42 우분투에서 일러스트 CS6 사용하기...... 1 언제나당당 3158 2014.05.22
41 리눅스에서 신속한 파일 검색 1 file 눈썹 5690 2014.05.22
40 리눅스(우분투)에서 Photoshop CS6 Extended 사용하기 3 언제나당당 3639 2014.05.18
39 우분투 "14.04" 에 "포토샵 CS6" 설치하기 10 file 언제나당당 6780 2014.05.02
38 libreoffice 한글언어팩 설치 방법 눈썹 5020 2014.04.19
37 특정 프로그램의 사용법을 오프라인으로 확인하기 1 컴퓨터매니아 2772 2014.02.22
36 우분투에서 프로그램 설치, 제거 하기...... 10 file 언제나당당 14125 2014.01.24
35 헌 외장하드 활용 6 jay 8300 2013.12.23
34 WUBI로 우분투 설치하기 - 두번째 4 file 태엽 5007 2013.11.17
33 wubi로 우분투 설치하기 태엽 10225 2013.11.17
32 (팁) Gimp 2.8x 싱글윈도우 모드(포토샵같은) 4 file tondekeman 2614 2013.11.17
31 김프(GIMP)로 화면 캡쳐하기 1 file 컴퓨터매니아 3353 2013.11.17

 빠른 글쓰기




   Copyright 2013-2023 LinuxForum