mirror of
https://github.com/lakinduakash/linux-wifi-hotspot.git
synced 2024-11-24 21:20:12 +00:00
feat(.desktop): include script to create system shortcut
This commit is contained in:
parent
d993710f52
commit
81473ad7b9
@ -7,11 +7,16 @@ all:
|
||||
@echo "Run 'make uninstall' for uninstallation."
|
||||
|
||||
install:
|
||||
# echo "HERE: $(HOME)"
|
||||
install -Dm755 create_ap $(DESTDIR)$(BINDIR)/create_ap
|
||||
install -Dm644 create_ap.conf $(DESTDIR)/etc/create_ap.conf
|
||||
[ ! -d /lib/systemd/system ] || install -Dm644 create_ap.service $(DESTDIR)$(PREFIX)/lib/systemd/system/create_ap.service
|
||||
install -Dm644 bash_completion $(DESTDIR)$(PREFIX)/share/bash-completion/completions/create_ap
|
||||
install -Dm644 README.md $(DESTDIR)$(PREFIX)/share/doc/create_ap/README.md
|
||||
install -Dm644 hotspot.png $(DESTDIR)$(PREFIX)/share/doc/create_ap/hotspot.png
|
||||
install -Dm644 wifihotspot.desktop $(DESTDIR)$(PREFIX)/share/doc/create_ap/wifihotspot.desktop
|
||||
install -Dm644 wifihotspot.desktop $(DESTDIR)$(PREFIX)/share/applications/wifihotspot.desktop
|
||||
|
||||
|
||||
uninstall:
|
||||
rm -f $(DESTDIR)$(BINDIR)/create_ap
|
||||
@ -19,3 +24,6 @@ uninstall:
|
||||
[ ! -f /lib/systemd/system/create_ap.service ] || rm -f $(DESTDIR)$(PREFIX)/lib/systemd/system/create_ap.service
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/bash-completion/completions/create_ap
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/doc/create_ap/README.md
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/doc/create_ap/hotspot.png
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/doc/create_ap/wifihotspot.desktop
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/applications/wifihotspot.desktop
|
||||
|
@ -87,3 +87,6 @@ Using the persistent [systemd](https://wiki.archlinux.org/index.php/systemd#Basi
|
||||
FreeBSD
|
||||
- Copyright (c) 2013, oblique
|
||||
- Copyright (c) 2019, lakinduakash
|
||||
|
||||
## Disclaimer
|
||||
<div>Icons made by <a href="https://www.flaticon.com/authors/photo3idea-studio" title="photo3idea_studio">photo3idea_studio</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a></div>
|
||||
|
BIN
src/scripts/hotspot.png
Normal file
BIN
src/scripts/hotspot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
8
src/scripts/wifihotspot.desktop
Normal file
8
src/scripts/wifihotspot.desktop
Normal file
@ -0,0 +1,8 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=WifiHotspot
|
||||
Icon=/usr/share/doc/create_ap/hotspot.png
|
||||
Exec=sh -c 'pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY sudo /usr/bin/wihotspot'
|
||||
Terminal=false
|
||||
Categories=System
|
||||
Keywords=Hotspot;WiFi
|
Loading…
Reference in New Issue
Block a user