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


번호 제목 글쓴이 조회 날짜
70 Comodo Antivirus for Linux file 성민컴퓨터 725 2018.10.17
69 xubuntu 상에서 리브레 오피스, 구글 크롬, 화이어폭스에서 한글 글자 깨짐 1 구엘프 726 2016.03.12
68 VM웨어 관련.. 1 캡틴 761 2016.02.10
67 리눅스에서 HP 례이저 프린트 설치 2 성민컴퓨터 783 2016.06.17
66 Dock 프로그램 설정 2 성민컴퓨터 811 2016.06.09
65 Linux용 F-PROT (Antivirus) 설치하기 3 통나무 824 2016.03.14
64 Mozlia Thunderbird 에서 메일계정 등록 1 성민컴퓨터 840 2016.06.17
63 The Best Linux Software 2015 성민컴퓨터 962 2016.02.20
62 Kodi Media Center 에서 한글 설정 법 성민컴퓨터 979 2016.06.08
61 adobe flash plugin 때문에 구엘프 1045 2017.01.21
60 Conky 테마 사이트 file 성민컴퓨터 1062 2016.06.09
59 Dock 프로그램 7 성민컴퓨터 1348 2016.06.08
58 파이어 폭스 빠르게 3 구엘프 1552 2017.02.16
57 "microsoft_online_apps"를 이용하여 리눅스에서 MSOffice 사용하기 3 file 언제나당당 1681 2015.09.09
56 LXLE 영문 설치 후 "한컴오피스 2014" 설치 방법 4 file 언제나당당 1813 2015.08.30
55 터미널에서 Office2016 설치하기 file 언제나당당 1865 2019.08.11
54 리눅스에서 파일 보안 삭제하기 컴퓨터매니아 2122 2014.08.30
53 리눅스 용 "skype" 가 4.3으로 판올림 4 모란앵두 2246 2014.08.03
52 우분투에서 한글 2010 한/영 전환하기...... 언제나당당 2295 2013.10.19
51 파이어폭스 종료시 탭 자동저장 기능 끄기 2 file 다른의견 2452 2014.11.16

 빠른 글쓰기




   Copyright 2013-2023 LinuxForum