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


번호 제목 글쓴이 조회 날짜
138 리눅스(우분투)에서 Photoshop CS6 Extended 사용하기 3 언제나당당 3635 2014.05.18
137 우분투 UI 추가 방법 3 카리스마조 3604 2013.10.10
136 7. xubuntu 카이로독 1 file 카리스마조 3596 2013.10.09
135 ibus에서 한/영키 사용하기 3 proc 3578 2014.04.19
134 디스크 관리자를 이용한 심볼릭 링크? 3 file 한방88 3502 2014.06.02
133 Linux Mint 17 RC "한/영" 변환...... 2 file 언제나당당 3470 2014.05.28
132 보안! 내 암호의 난이도는? (패스워드 레벨 측정) 2 구르뫼취한농부 3460 2015.01.26
131 Ubuntu,eOS 성능최적화 3탄 시작프로그램 2 file tondekeman 3445 2013.11.07
130 리눅스를 백업을 다른 파티션에 복구할 경우 5 구르뫼취한농부 3442 2015.01.25
129 centos 6.x 설치 메뉴얼 pdf -깡페24 2 테리 3438 2014.08.28
128 우분투 유니티가 맘에 안들면 fallback 3 file 플라타너스 3426 2013.10.22
127 우분투 시냅틱 패키지 관리자 설치 1 file 카리스마조 3391 2013.10.12
126 민트15 Mate의 사용자 메뉴얼(7)_제어판의 기능 5 file 마니또우 3369 2013.10.21
125 LibreOffice 시작속도 높이기 (Quickstarter) 1 file tondekeman 3357 2013.11.01
124 김프(GIMP)로 화면 캡쳐하기 1 file 컴퓨터매니아 3351 2013.11.17
123 Elementary OS 로그인 사운드 4 file tondekeman 3314 2013.11.19
122 OpenMandriva.2014 "한/영" 키 변환방법 2 file 언제나당당 3302 2014.04.21
» LXDE 환경에서 크롬 사용중 마그넷 링크가 작동이 안될때 1 엘레 3292 2013.10.22
120 다음홈페이지 플래쉬 광고 없애기 1 지나다가 3290 2013.12.10
119 프로그램 속도 향상 preload 3 POETICA 3286 2013.10.30

 빠른 글쓰기




   Copyright 2013-2023 LinuxForum