$ 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 "마니또우님" 보세요...... 12 언제나당당 3012 2013.10.17
137 eOS 바탕화면 아이콘 만들기 5 file tondekeman 3017 2013.10.26
136 Ubuntu,eOS 성능최적화 4탄 Profile Sync Daemon 3 file tondekeman 3031 2013.11.09
135 "Rosa fresh kde(Lxde) r5" 한글화, 한글입력...... 3 file 언제나당당 3034 2015.02.06
134 우분투에서 한/영 전환키 누르면 허드가 나올때 file 카리스마조 3085 2013.10.23
133 리눅스?? 계보도 3 file tondekeman 3093 2013.10.10
132 우분투 최소화 버튼 우측으로 이동 1 file 카리스마조 3103 2013.10.12
131 Desktop environment sample 7 file tondekeman 3134 2014.01.03
130 리눅스에서 윈도용 프로그램 돌리기......^^ 6 file 언제나당당 3150 2014.09.16
129 우분투에서 일러스트 CS6 사용하기...... 1 언제나당당 3156 2014.05.22
128 리눅스 기초 - 리눅스란... 1 아름다운소망 3158 2013.10.14
127 리얼택 오디오 드라이브_수동 설치 2 옛날에 3158 2014.04.02
126 "linuxmint-17 RC" 영문으로 설치 후 한글화...... 4 언제나당당 3161 2014.05.28
125 Ubuntu,eOS Google Calendar indicator 4 file tondekeman 3166 2013.11.07
124 우분투 한영 전환키 복원 4 file 카리스마조 3178 2013.10.12
123 Elementary OS kingsoft WPS office eOS theme 설치 file tondekeman 3180 2013.10.24
122 우분투 날씨 표시기 (weather-indicator) 설치 file tondekeman 3228 2013.11.01
121 리눅스에서 한글 2010 사용하기 6 카리스마조 3261 2013.10.14
120 프로그램 속도 향상 preload 3 POETICA 3289 2013.10.30
119 다음홈페이지 플래쉬 광고 없애기 1 지나다가 3290 2013.12.10

 빠른 글쓰기




   Copyright 2013-2023 LinuxForum