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


번호 제목 글쓴이 조회 날짜
178 중요한 자료를 차등, 증분 백업으로 안전하게 백업하기. 4 file 돌나물 5433 2014.06.15
177 Elementary OS 0.3 Beta 2 한글화, 한글 입력......^^ 1 file 언제나당당 5343 2015.02.15
176 wine 최신버전 설치하기 2 카리스마조 5293 2013.10.14
175 가장 기초??? 구조와 차이점 비교..( 인용자료임 ) 4 file 빨강모자 5096 2013.12.11
174 Zorin 9 RC는 Fcitx로......^^ 7 file 언제나당당 5083 2014.07.06
173 libreoffice 한글언어팩 설치 방법 눈썹 5020 2014.04.19
172 WUBI로 우분투 설치하기 - 두번째 4 file 태엽 5007 2013.11.17
171 인터넷음악듣기-audacious 3.4.1 file audacious 4981 2013.10.21
170 윈도우와 리눅스의 수퍼유저 4 컴퓨터매니아 4969 2014.01.29
169 리눅스 부팅메뉴 삭제&윈도우 부팅메뉴 복구 7 file 다른의견 4720 2013.12.22
168 Linux Mint 17.1 RC 한글 입력 방법......^^ 5 file 언제나당당 4663 2014.11.17
167 리눅스 텍스트↔윈도우 텍스트 상호 변환 2 file 다른의견 4646 2013.10.26
166 Desktop environment 2 tondekeman 4599 2014.01.03
165 우분투 guest 계정 끄기 1 tondekeman 4558 2013.11.01
164 민트 바로가기 아이콘 추가하기 file 카리스마조 4453 2013.10.10
163 한글 지원이 없는 리눅스 한글 설정법 4 file 태엽 4318 2013.10.28
162 데비안 리눅스로 구축하는 엄창나게 가벼운 데스크탑 환경 1 구르뫼취한농부 4290 2015.01.11
161 Elementary OS MTP스마트폰 연결(우분투 포함) 1 tondekeman 4275 2013.10.17
160 자그마한 팁 하나. 4 flyingbear 4269 2013.10.14
159 간단팁 구글뻘질 줄이기,구글검색. 야밤 4247 2013.10.22

 빠른 글쓰기




   Copyright 2013-2023 LinuxForum