$ 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 잃어버린 소리를 찾아서...^^ 2 file audacious 2536 2013.10.23
177 리눅스에서 포토샵 사용하기......^^ 3 file 언제나당당 2548 2014.09.24
176 xubuntu설치후 네트워크 서비스 탐색 비활성화 오류 메시지 의미없는시간 2551 2013.10.09
175 5. xubuntu 시계설정 file 카리스마조 2576 2013.10.09
174 9. xubuntu 테마변경 file 카리스마조 2576 2013.10.09
173 리눅스에서 지포스 드라이브 찾기 1 카리스마조 2581 2013.10.16
172 리눅스에 한글 2010 설치 후 한/영 전환 안될때...... 4 file 언제나당당 2587 2013.10.19
171 리눅스 디렉토리 구조 -1- 1 아름다운소망 2589 2013.10.12
170 Ubuntu,eOS Everpad (Evernote Client) file tondekeman 2589 2013.11.07
169 "FEDORA"와 "ROBO" Linux 한/영 변환......^^ 3 file 언제나당당 2600 2014.11.13
168 리눅스를 처음 접하시는 분들께...... 14 언제나당당 2602 2015.10.23
167 6. xubuntu 패널숨김 file 카리스마조 2606 2013.10.09
166 (팁) Gimp 2.8x 싱글윈도우 모드(포토샵같은) 4 file tondekeman 2614 2013.11.17
165 xterm 세션에서 GNOME으로 전환하기 4 file 컴퓨터매니아 2621 2013.11.10
164 바탕화면에 시스템 정보 표시하기 1 카리스마조 2629 2013.10.15
163 레인미터 스킨 추가하기 ( 무식한 방법 ) 6 file 빨강모자 2634 2014.10.18
162 Elementary OS Wingpanel Slim file tondekeman 2643 2013.10.12
161 리눅스(우분투) 백업, 복구하기 (tar 명령어 이용) 달빛조각사 2652 2013.10.17
160 멀티부팅 USB로 리눅스 설치 다른의견 2712 2013.10.18
159 10. xubuntu 스크롤 방향 뒤집기 file 카리스마조 2755 2013.10.10

 빠른 글쓰기




   Copyright 2013-2023 LinuxForum