Skip to content

Commit

Permalink
fix: environment -> profile
Browse files Browse the repository at this point in the history
* fix: environment -> profile

* doc: justfile already installs the env file

* fix: `/usr/share` -> `/etc` env file

* Update README.md

---------

Co-authored-by: wiiznokes <78230769+wiiznokes@users.noreply.github.com>
  • Loading branch information
D-Brox and wiiznokes authored Sep 26, 2024
1 parent 1fb389e commit 00d83fa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ just build-release
sudo just install
```

_Write `COSMIC_DATA_CONTROL_ENABLED=1` in `/etc/environment`. (see [this issue](https://github.com/wiiznokes/clipboard-manager/issues/61))_

Reboot or restart the session for the `COSMIC_DATA_CONTROL_ENABLED=1` environment variable to take effect.
Restart the session for the `COSMIC_DATA_CONTROL_ENABLED` environment variable to take effect.

## Logs

Expand Down
6 changes: 3 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ share-dst := base-dir / 'share'
bin-dst := base-dir / 'bin' / NAME
desktop-dst := share-dst / 'applications' / APPID + '.desktop'
icon-dst := share-dst / 'icons/hicolor/scalable/apps' / APPID + '-symbolic.svg'
env-dst := base-dir / 'lib/environment.d' / NAME + '.conf'
env-dst := rootdir / 'etc/profile.d' / NAME + '.sh'
migrations-dst := share-dst / NAME / 'migrations'


Expand All @@ -31,7 +31,7 @@ install: install-migrations
install -Dm0755 {{bin-src}} {{bin-dst}}
install -Dm0644 res/desktop_entry.desktop {{desktop-dst}}
install -Dm0644 res/app_icon.svg {{icon-dst}}
install -Dm0644 res/env.conf {{env-dst}}
install -Dm0644 res/env.sh {{env-dst}}

install-migrations:
#!/usr/bin/env sh
Expand Down Expand Up @@ -119,4 +119,4 @@ build-and-install: uninstall-f
io.github.wiiznokes.cosmic-ext-applet-clipboard-manager.json

run:
flatpak run io.github.wiiznokes.cosmic-ext-applet-clipboard-manager
flatpak run io.github.wiiznokes.cosmic-ext-applet-clipboard-manager
1 change: 0 additions & 1 deletion res/env.conf

This file was deleted.

1 change: 1 addition & 0 deletions res/env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export COSMIC_DATA_CONTROL_ENABLED=1

0 comments on commit 00d83fa

Please sign in to comment.