📢 Webサイト閉鎖と移転のお知らせ
このWebサイトは2026年9月に閉鎖いたします。
新しい記事は移転先で追加しております。(旧サイトでは記事を追加しておりません)
| 62行目: | 62行目: | ||
**: <code>make -j $(nproc)</code> | **: <code>make -j $(nproc)</code> | ||
**: <code>make install</code> | **: <code>make install</code> | ||
<br> | |||
次に、/<CopyQのインストールディレクトリ>/binディレクトリに、CopyQの起動用のシェルスクリプト(ラッパー)を作成する。<br> | |||
vi /<CopyQのインストールディレクトリ>/bin/copyq.sh | |||
<br> | |||
<syntaxhighlight lang="sh"> | |||
# /<CopyQのインストールディレクトリ>/bin/copyq.shファイル | |||
#!/usr/bin/env sh | |||
appname="copyq" | |||
# use -f to make the readlink path absolute | |||
dirname="$(dirname -- "$(readlink -f -- "${0}")" )" | |||
if [ "$dirname" = "." ]; then | |||
dirname="$PWD/$dirname" | |||
fi | |||
cd $dirname | |||
# Initialize interpreter path | |||
export LD_LIBRARY_PATH="${dirname}/../lib:$LD_LIBRARY_PATH" | |||
export LD_LIBRARY_PATH="/<Qtのインストールディレクトリ>/<Qtのバージョン>/gcc_64/lib:$LD_LIBRARY_PATH" | |||
# Run CopyQ binary | |||
"$dirname/$appname" "$@" | |||
</syntaxhighlight> | |||
<br> | |||
最後に、~/.local/share/applicationsディレクトリにCopyQのデスクトップエントリファイルを作成する。<br> | |||
vi ~/.local/share/applications/com.github.hluk.copyq.desktop | |||
<br> | |||
# ~/.local/share/applications/com.github.hluk.copyq.desktop | |||
[Desktop Entry] | |||
Name=CopyQ | |||
GenericName=Clipboard Manager | |||
Comment=A cut & paste history utility | |||
Exec=/home/suse/InstallSoftware/CopyQ/bin/copyq.sh --start-server show | |||
Icon=copyq | |||
# Workaround / fix for issue #1526 that prevents a proper autostart of the tray icon in GNOME | |||
X-GNOME-Autostart-Delay=3 | |||
# The rest is taken from Klipper application. | |||
Type=Application | |||
GenericName[ja]=クリップボードツール | |||
Comment[ja]=カット&ペースト履歴ユーティリティ | |||
Categories=KDE;Utility; | |||
Terminal=false | |||
X-KDE-autostart-after=panel | |||
X-KDE-StartupNotify=false | |||
X-KDE-UniqueApplet=true | |||
<br> | <br> | ||