Skip to content

Commit

Permalink
Rename the onedriver desktop entry to fix the window icon in the GNOM…
Browse files Browse the repository at this point in the history
…E workspace switcher (#369)

* Rename the "onedriver.desktop" file to "onedriver-launcher.desktop"

* Update onedriver.spec

Oops, I didn't realize beforehand that I only had to add "-launcher" at the end of the .desktop file name instead of replacing the macros.
  • Loading branch information
foopsss authored Nov 29, 2023
1 parent 1b8eac1 commit 4377d75
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ install: onedriver onedriver-launcher
cp pkg/resources/onedriver.svg /usr/share/icons/onedriver/
cp pkg/resources/onedriver.png /usr/share/icons/onedriver/
cp pkg/resources/onedriver-128.png /usr/share/icons/onedriver/
cp pkg/resources/onedriver.desktop /usr/share/applications/
cp pkg/resources/onedriver-launcher.desktop /usr/share/applications/
cp pkg/resources/[email protected] /etc/systemd/user/
gzip -c pkg/resources/onedriver.1 > /usr/share/man/man1/onedriver.1.gz
mandb
Expand All @@ -54,7 +54,7 @@ uninstall:
/usr/bin/onedriver \
/usr/bin/onedriver-launcher \
/etc/systemd/user/[email protected] \
/usr/share/applications/onedriver.desktop \
/usr/share/applications/onedriver-launcher.desktop \
/usr/share/man/man1/onedriver.1.gz
rm -rf /usr/share/icons/onedriver
mandb
Expand Down
4 changes: 2 additions & 2 deletions onedriver.spec
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ cp %{name}-launcher %{buildroot}/%{_bindir}
cp pkg/resources/%{name}.png %{buildroot}/usr/share/icons/%{name}
cp pkg/resources/%{name}-128.png %{buildroot}/usr/share/icons/%{name}
cp pkg/resources/%{name}.svg %{buildroot}/usr/share/icons/%{name}
cp pkg/resources/%{name}.desktop %{buildroot}/usr/share/applications
cp pkg/resources/%{name}-launcher.desktop %{buildroot}/usr/share/applications
cp pkg/resources/%{name}@.service %{buildroot}/usr/lib/systemd/user
cp pkg/resources/%{name}.1.gz %{buildroot}/usr/share/man/man1

Expand All @@ -65,7 +65,7 @@ cp pkg/resources/%{name}.1.gz %{buildroot}/usr/share/man/man1
%attr(644, root, root) /usr/share/icons/%{name}/%{name}.png
%attr(644, root, root) /usr/share/icons/%{name}/%{name}-128.png
%attr(644, root, root) /usr/share/icons/%{name}/%{name}.svg
%attr(644, root, root) /usr/share/applications/%{name}.desktop
%attr(644, root, root) /usr/share/applications/%{name}-launcher.desktop
%attr(644, root, root) /usr/lib/systemd/user/%{name}@.service
%doc
%attr(644, root, root) /usr/share/man/man1/%{name}.1.gz
Expand Down
2 changes: 1 addition & 1 deletion pkg/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ override_dh_auto_install:
install -D -m 0644 pkg/resources/onedriver.png $$(pwd)/debian/onedriver/usr/share/icons/onedriver/onedriver.png
install -D -m 0644 pkg/resources/onedriver-128.png $$(pwd)/debian/onedriver/usr/share/icons/onedriver/onedriver-128.png
install -D -m 0644 pkg/resources/onedriver.svg $$(pwd)/debian/onedriver/usr/share/icons/onedriver/onedriver.svg
install -D -m 0644 pkg/resources/onedriver.desktop $$(pwd)/debian/onedriver/usr/share/applications/onedriver.desktop
install -D -m 0644 pkg/resources/onedriver-launcher.desktop $$(pwd)/debian/onedriver/usr/share/applications/onedriver-launcher.desktop
install -D -m 0644 pkg/resources/[email protected] $$(pwd)/debian/onedriver/usr/lib/systemd/user/[email protected]
install -D -m 0644 pkg/resources/onedriver.1.gz $$(pwd)/debian/onedriver/usr/share/man/man1/onedriver.1.gz

File renamed without changes.

0 comments on commit 4377d75

Please sign in to comment.