$ 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 Elementary OS 노트북 한영키(우분투 포함) tondekeman 3735 2013.10.17
97 아래 카조님이 올리신 한글2010 설치...... 4 file 언제나당당 3751 2013.10.14
96 두줄팁 부팅시 numlock켜기 2 야밤 3808 2013.10.22
95 주분투 13.10에서 한글설치 4 마니또우 3809 2013.10.31
94 ubuntu12.04 버전에서 윈도우7 네트웍 드라이브 마운트 방법 미디안 3854 2014.04.08
93 Elementary OS 설치후 필수 설정 file tondekeman 3887 2013.10.09
92 NMI Watchdog 에러 해결하기 1 file 컴퓨터매니아 3932 2013.10.27
91 우분투 트윅(Unbuntu Tweak) 소개 6 file 마니또우 3945 2013.10.26
90 Elementary OS 초보자 데스크탑용 5 file tondekeman 3987 2013.10.09
89 Elementary OS 리마스터 배포판T 7 file tondekeman 4040 2013.11.30
88 민트 한글 키보드 설치 방법 file 카리스마조 4045 2013.10.10
87 리포PE USB에 설치하기 9 file 컴퓨터매니아 4049 2014.10.04
86 우분투에 Photoshop CS6 설치하기...... 7 언제나당당 4065 2013.10.23
85 Ubuntu(19.04)에 “MS Office 2016” 완벽 설치 file 언제나당당 4081 2019.08.07
84 리눅스 트루이미지로 백업 복구 잘됨 2 거지왕초 4122 2013.10.13
83 나만의 배포판을 만들자 2 태엽 4152 2013.10.12
82 리눅스에 윈8.1 맑은폰트 설치 8 file audacious 4187 2014.06.05
81 Desktop menu 6 file tondekeman 4206 2014.01.04
80 간단팁 구글뻘질 줄이기,구글검색. 야밤 4247 2013.10.22
79 자그마한 팁 하나. 4 flyingbear 4269 2013.10.14

 빠른 글쓰기




   Copyright 2013-2023 LinuxForum