---
title: "【lporg】mac OS launchpadのレイアウトを保存・復元する！ | grasys blog"
url: "https://blog.grasys.io/post/yusukeh/lporg-mac-os-launchpad"
description: "こんにちは長谷川です。 私は日頃macOSのupdateをtopgradeで対応していて、brewで管理してるcask系のappがlaunchpad上でのレイアウト乱れるのが嫌だったんだけど解決方法があった！！（topgradeの記事はこちら - topgradeでmacOSのupdate管理） だがしかし！laun…"
---

# 【lporg】mac OS launchpadのレイアウトを保存・復元する！

-   ![](/_astro/noicon.CTHOhNiB_1HMs6A.webp)[yusukeh](/authors/yusukeh/)
-   公開日：2022年7月1日
-   カテゴリー：[Tech](/categories/tech/)
-   タグ：[#macOS](/tags/macos/)

![【lporg】mac OS launchpadのレイアウトを保存・復元する！](/_astro/ogp.CCfgd9F0_zHeI5.webp)

こんにちは長谷川です。

私は日頃macOSのupdateをtopgradeで対応していて、brewで管理してるcask系のappがlaunchpad上でのレイアウト乱れるのが嫌だったんだけど解決方法があった！！（topgradeの記事はこちら -> [topgradeでmacOSのupdate管理](https://blog.grasys.io/post/yusukeh/topgrade/)）

だがしかし！launchpadのレイアウトを保存して読み込み復元できるlporgなるものを発見😁

[lporg - Organize Your macOS Launchpad Apps](https://github.com/blacktop/lporg)

* * *

## lporg

コマンドでlaunchpadのレイアウト状態を保存したり復元したりできる。  
使い方は簡単なので本家の[Getting Started](https://github.com/blacktop/lporg#getting-started)みればすぐわかる。  
configの保存先はiCloudと自分のUserHomeのドットファイルとして保存できる感じ😆  
自分はiCloud保存するとバラけちゃうのでmackupで管理することにした。

## mackupでlporg configを管理する

こんな感じのconfigを `.mackup` 配下に追加した。

Plain textcontent\_copy

```
 cat .mackup/lporg.cfg
[application]
name = lporg

[configuration_files]
.launchpad.yaml
```

mackupに追加されてるかは以下のコマンドで確認できる。

Plain textcontent\_copy

```
mackup list | grep lporg
 - lporg
```

## install lporg

これもgithubの[Install](https://github.com/blacktop/lporg#install)見ればすぐわかる。

brewで一発で入る！

Plain textcontent\_copy

```
brew install blacktop/tap/lporg
```

入ったか確認

Plain textcontent\_copy

```
which lporg
/usr/local/bin/lporg
```

## \[lporg save\] macOS Launchpadの現状を保存

macOS Launchpad Appsのレイアウトは事前に整理しておいて、おもむろに以下を叩く！

Plain textcontent\_copy

```
lporg save
```

すると以下のように保存先を聞かれる。

自分はhome folderを選択

Plain textcontent\_copy

```
lporg save
? Choose where to save your launch pad settings:  [Use arrows to move, type to filter]
> home folder
  iCloud
```

### configを指定してsaveしたい場合はこんな感じ

config指定してsaveしたいならこんな感じで保存できるみたい。

Plain textcontent\_copy

```
lporg save --help
NAME:
   lporg save - save current launchpad settings

USAGE:
   lporg save [command options] [arguments...]

OPTIONS:
   --config FILE, -c FILE  Save configuration to FILE
```

だから自分はhome folderのドットファイルなのでこんな感じかな？

Plain textcontent\_copy

```
lporg save --config /Users/${USER}/.launchpad.yaml
```

## \[lporg load\] macOS Launchpadを保存したconfigから復元する！

復元もめっちゃ簡単😆

Plain textcontent\_copy

```
lporg load ~/${USER}/.launchpad.yaml
? Backup your current Launchpad settings? (y/N)
~~~~~
      • enabling SQL update triggers
      • restarting Dock
```

### lporg load –help

backup取りながらとかもできるみたい  
自分は必要なさそうなので使わない😁

Plain textcontent\_copy

```
lporg load --help
NAME:
   lporg load - load launchpad settings config from `FILE`

USAGE:
   lporg load [command options] [arguments...]

OPTIONS:
   --backup, -y     backup current launchpad settings
   --no-backup, -n  do not backup current launchpad settings
```

## launchpad がっちゃがちゃになる問題が無事解決！

brew update/upgradeが走ってもいつもきれいに整理されたlaunchpadになりましたとさ！

めでたしめでたし😁

## この記事を書いた人

[![](/_astro/yusukeh.BvUd2yKE_1mQ6Fp.webp)](/authors/yusukeh/)

### [yusukeh](/authors/yusukeh/)

Fly high. Think deep. Move fast. Go far.🦅

-   [X](https://x.com/yusukeh "X")
-   [GitHub](https://github.com/yusukeh "GitHub")
-   [Medium](https://medium.com/@yusukeh "Medium")
-   [Facebook](https://www.facebook.com/yusuke.exzm "Facebook")
-   [Instagram](https://www.instagram.com/yusukehasegawa/ "Instagram")
-   [LinkedIn](https://www.linkedin.com/in/hasegawa-yusuke-091b4164/ "LinkedIn")

[プロフィールと記事一覧](/authors/yusukeh/)