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


번호 제목 글쓴이 조회 날짜
98 (완성)Handy Linux 1.6 한글 설정......^^ 13 file 언제나당당 2961 2014.07.29
97 Rosa fresh kde r5 설치 방법...... 1 file 언제나당당 2959 2015.01.28
96 토탈커맨더의 FTP활용성 중에서 내컴을 경유하지 않고 자료 이동 1 빨강모자 2938 2015.01.15
95 Ubuntu 에 (eOS) elementary-desktop 설치 5 file tondekeman 2934 2013.10.28
94 server-world 상상한것들을 가능하게... 2 file tondekeman 2925 2013.10.12
93 Elementary OS My-Weather-Indicator 1 file tondekeman 2908 2013.11.19
92 Elementary OS 최대,최소,버튼 elementary Tweaks file tondekeman 2906 2013.10.10
91 리눅스 + 윈도우 멀티부팅할때 마운트... 1 거지왕초 2897 2013.10.13
90 BootStrap 라이브러리 사용하기! 5 초보핵 2892 2014.08.03
89 http://distrowatch.com/ 리눅스 최신판 1 file tondekeman 2888 2013.10.10
88 8. xubuntu 패널제거 file 카리스마조 2887 2013.10.09
87 리눅스 디렉토리 구조 -2- 1 아름다운소망 2886 2013.10.12
86 민트15 Mate의 사용자 메뉴얼(1)_주요기능 설명 8 file 마니또우 2863 2013.10.17
85 리눅스에서 인터넷 방송 듣기 file 스머프 2853 2013.10.13
84 (팁) 카세트 케이스로 스마트폰 거치대 2 file tondekeman 2811 2013.11.17
83 Handy Linux 영문 설치후 한글 사용......^^ 5 file 언제나당당 2795 2014.07.28
82 우분투 플래시 플러그인 설치 2 file 카리스마조 2777 2013.10.12
81 특정 프로그램의 사용법을 오프라인으로 확인하기 1 컴퓨터매니아 2770 2014.02.22
80 10. xubuntu 스크롤 방향 뒤집기 file 카리스마조 2754 2013.10.10
79 멀티부팅 USB로 리눅스 설치 다른의견 2710 2013.10.18

 빠른 글쓰기




   Copyright 2013-2023 LinuxForum