dhcpcd-ui
4 months agoDisconnect when same SSID selected (#1) master
Roy Marples [Thu, 18 Mar 2021 15:30:13 +0000 (15:30 +0000)]
Disconnect when same SSID selected (#1)

Modify gui functions so that when the entry of the currently
associated SSID is selected, the interface is disconnected.

Co-authored-by: Jorge Natz <jorgenatzdev@gmail.com>
6 months agoFix dist to find cairosvg dhcpcd-ui-0.7.8
Roy Marples [Mon, 28 Dec 2020 16:12:14 +0000 (16:12 +0000)]
Fix dist to find cairosvg

6 months agoUse cairosvg rather than librsvg to convert SVG to PNG.
Roy Marples [Mon, 28 Dec 2020 16:01:52 +0000 (16:01 +0000)]
Use cairosvg rather than librsvg to convert SVG to PNG.

librsvg now uses rust which I really don't want in my build chain.
cairosvg on the other hand uses python, which already is in my chain.

The downside is that we need to detect the binary name as often
it's based on the python version.

6 months agoRelease dhcpcd-ui-0.7.8
Roy Marples [Mon, 28 Dec 2020 14:24:43 +0000 (14:24 +0000)]
Release dhcpcd-ui-0.7.8

6 months agoAdd support dhcpcd NOCARRIER_ROAMING
Roy Marples [Mon, 28 Dec 2020 14:23:24 +0000 (14:23 +0000)]
Add support dhcpcd NOCARRIER_ROAMING

7 months agolibdhcpcd: Work once more with data which does not yield an interface
Hanno Zysik [Wed, 2 Dec 2020 13:37:07 +0000 (13:37 +0000)]
libdhcpcd: Work once more with data which does not yield an interface

Such has INFORM6.
An interface could not be created for other reasons, so just read
all the data and try to create all interfaces from it.

11 months agocurses: ncurses may define curs_set outside of curses
Roy Marples [Mon, 10 Aug 2020 11:16:18 +0000 (12:16 +0100)]
curses: ncurses may define curs_set outside of curses

This is a very poor design decision that sadly we need to work
around. There is no technical reason why all curses functions
are not defined in libcurses.

Thanks to Lars Wendler <polynomial-c@gentoo.org> for the initial patch.

11 months agodhcpcd-qt: Remove support for KDE Notifications
Roy Marples [Sun, 9 Aug 2020 11:10:55 +0000 (12:10 +0100)]
dhcpcd-qt: Remove support for KDE Notifications

Qt Notifications are fine and highly portable.

KDE Notifications are now more tricky as they require a per app
config file to be installed and of course don't work with
other Qt based desktops.
If anyone wants them back, we should try and create dhcpcd-kde
instead of dhcpcd-qt.

11 months agodhcpcd-qt: Use 22x22 png icon with system tray
Roy Marples [Sun, 9 Aug 2020 07:36:14 +0000 (08:36 +0100)]
dhcpcd-qt: Use 22x22 png icon with system tray

SVG no longer renders with Qt5 :/

11 months agowhitespace
Roy Marples [Sat, 8 Aug 2020 14:47:46 +0000 (15:47 +0100)]
whitespace

11 months agodhcpcd-qt: Add support for KDE5 Notifications
Roy Marples [Sat, 8 Aug 2020 14:44:52 +0000 (15:44 +0100)]
dhcpcd-qt: Add support for KDE5 Notifications

11 months agoconfigure: Fix notify for gtk
Roy Marples [Sat, 8 Aug 2020 10:47:57 +0000 (11:47 +0100)]
configure: Fix notify for gtk

11 months agolibdhcpcd: harden reading of dhcpcd socket
Roy Marples [Tue, 4 Aug 2020 02:49:11 +0000 (03:49 +0100)]
libdhcpcd: harden reading of dhcpcd socket

Matches recent dhcpcd internal socket behaviour.

11 months agoui: Don't notify new scan results if ANY interface is connected
Roy Marples [Tue, 4 Aug 2020 02:41:29 +0000 (03:41 +0100)]
ui: Don't notify new scan results if ANY interface is connected

We don't want to be spammed if wired is connected and wireless isn't.

19 months agovwprintw -> vw_printw as the former is deprecated.
Roy Marples [Sat, 21 Dec 2019 15:21:28 +0000 (15:21 +0000)]
vwprintw -> vw_printw as the former is deprecated.

19 months agolibdhcpcd: Limit messages to SSIZE_MAX
Roy Marples [Wed, 11 Dec 2019 12:27:51 +0000 (12:27 +0000)]
libdhcpcd: Limit messages to SSIZE_MAX

We need to add one to it for allocation to terminate it and
this is a stupidly big string anyway.

Found by LGMT.

19 months agoAdd guard headers.
Roy Marples [Wed, 11 Dec 2019 12:22:39 +0000 (12:22 +0000)]
Add guard headers.

Found by LGTM.

While here, tidy configure output.

19 months agoRelease dhcpcd-ui-0.7.7 dhcpcd-ui-0.7.7
Roy Marples [Tue, 3 Dec 2019 15:21:18 +0000 (15:21 +0000)]
Release dhcpcd-ui-0.7.7

19 months agoSupport the up and coming dhcpcd-9.
Roy Marples [Fri, 29 Nov 2019 01:00:33 +0000 (01:00 +0000)]
Support the up and coming dhcpcd-9.

22 months agolibdhcpcd: decode escaped \2XX and \\ correctly
Roy Marples [Thu, 19 Sep 2019 12:57:48 +0000 (13:57 +0100)]
libdhcpcd: decode escaped \2XX and \\ correctly

2 years agoRelease dhcpcd-ui-0.7.6 dhcpcd-ui-0.7.6
Roy Marples [Wed, 26 Jun 2019 22:43:50 +0000 (23:43 +0100)]
Release dhcpcd-ui-0.7.6

2 years agoFix making dist files.
Roy Marples [Wed, 26 Jun 2019 22:42:22 +0000 (23:42 +0100)]
Fix making dist files.

2 years agoPreverse profile and fallback blocks.
Roy Marples [Fri, 31 May 2019 21:43:26 +0000 (22:43 +0100)]
Preverse profile and fallback blocks.

2 years agoI don't use Phabricator anymore.
Roy Marples [Sat, 19 Jan 2019 11:48:04 +0000 (11:48 +0000)]
I don't use Phabricator anymore.

3 years agoHide hidden SSIDs
Peter Ryan [Wed, 4 Apr 2018 15:59:52 +0000 (16:59 +0100)]
Hide hidden SSIDs

3 years agowpa: update frequency on each dhcpcd event
Roy Marples [Thu, 1 Mar 2018 09:49:21 +0000 (09:49 +0000)]
wpa: update frequency on each dhcpcd event

This fixes an issue with the AP reconnecting to the same AP but not
updating the frequency correctly.

Thanks to Simon Long.

3 years agowpa: Match exact ctrl message string length
Roy Marples [Thu, 1 Mar 2018 09:44:23 +0000 (09:44 +0000)]
wpa: Match exact ctrl message string length

3 years agowpa: add better frequency support.
Roy Marples [Mon, 26 Feb 2018 22:19:09 +0000 (22:19 +0000)]
wpa: add better frequency support.

Add flags indicate if a given AP is 2G, 5G or both.
When a wpa_supplicant connection is made, set the frequency
for the connected interface.

3 years agoAdd debug flags if git checkout is present.
Roy Marples [Mon, 26 Feb 2018 22:15:50 +0000 (22:15 +0000)]
Add debug flags if git checkout is present.

3 years agoWhitespace
Roy Marples [Mon, 6 Nov 2017 13:49:53 +0000 (13:49 +0000)]
Whitespace

3 years agoDon't spam the user about new AP's if we're connected already.
Roy Marples [Mon, 6 Nov 2017 13:45:47 +0000 (13:45 +0000)]
Don't spam the user about new AP's if we're connected already.

3 years agoUse an icon if using >=Qt-5.9 in notificaions.
Roy Marples [Sat, 21 Oct 2017 03:56:37 +0000 (04:56 +0100)]
Use an icon if using >=Qt-5.9 in notificaions.

3 years agoWe changed enough of dhcpcd-qt in 2017 to warrant a copyright bump.
Roy Marples [Sat, 21 Oct 2017 02:35:28 +0000 (03:35 +0100)]
We changed enough of dhcpcd-qt in 2017 to warrant a copyright bump.

3 years agoStop using iostream, stdio is smaller binary.
Roy Marples [Sat, 21 Oct 2017 02:28:52 +0000 (03:28 +0100)]
Stop using iostream, stdio is smaller binary.

3 years agoNote the debug settings needed for Qt-5.
Roy Marples [Sat, 21 Oct 2017 02:09:25 +0000 (03:09 +0100)]
Note the debug settings needed for Qt-5.

3 years agoUpdate systemd service file.
Roy Marples [Fri, 20 Oct 2017 21:18:00 +0000 (22:18 +0100)]
Update systemd service file.

3 years agoNote that Qt5 now builds also.
Roy Marples [Fri, 20 Oct 2017 21:14:37 +0000 (22:14 +0100)]
Note that Qt5 now builds also.

3 years agoStock buttons have been deprecated, so roll our own.
Roy Marples [Fri, 20 Oct 2017 21:00:03 +0000 (22:00 +0100)]
Stock buttons have been deprecated, so roll our own.

3 years agoFix starting in LXQt by starting after it's panel.
Roy Marples [Fri, 20 Oct 2017 19:57:11 +0000 (20:57 +0100)]
Fix starting in LXQt by starting after it's panel.

3 years agoWhitespace fixes
Roy Marples [Fri, 20 Oct 2017 19:32:11 +0000 (20:32 +0100)]
Whitespace fixes

3 years agoIgnore the .qmake.stash file from Qt5.
Roy Marples [Fri, 20 Oct 2017 17:35:59 +0000 (18:35 +0100)]
Ignore the .qmake.stash file from Qt5.

3 years agoQt5 update
mir3x [Fri, 20 Oct 2017 17:32:37 +0000 (18:32 +0100)]
Qt5 update

3 years agoFix prior
Roy Marples [Fri, 8 Sep 2017 19:47:41 +0000 (20:47 +0100)]
Fix prior

3 years agoFix building dhcpcd-qt by default if some binaries are not available.
Roy Marples [Sun, 3 Sep 2017 17:36:23 +0000 (18:36 +0100)]
Fix building dhcpcd-qt by default if some binaries are not available.

3 years agouse getpwuid_r(3) instead of getlogin(3)
Roy Marples [Sun, 3 Sep 2017 17:33:59 +0000 (18:33 +0100)]
use getpwuid_r(3) instead of getlogin(3)

getlogin(3) isn't thread safe and apparently has some issues.
Also, on Linux Mint at least it always returns NULL.
Use getpwuid_r(3) instead so we are thread safe and always
seems to work.

4 years agoAdd an .arcconfig file to hook arcanist with phabricator.
Roy Marples [Fri, 24 Mar 2017 12:50:49 +0000 (12:50 +0000)]
Add an .arcconfig file to hook arcanist with phabricator.

4 years agoAdd some markdown loving.
Roy Marples [Tue, 14 Mar 2017 22:36:41 +0000 (22:36 +0000)]
Add some markdown loving.

4 years agoAdd some .gitignore files.
Roy Marples [Tue, 14 Mar 2017 22:32:09 +0000 (22:32 +0000)]
Add some .gitignore files.

4 years agoRemove distinfo files before making them and keep distinfo in signed result.
Roy Marples [Sat, 5 Nov 2016 14:06:27 +0000 (14:06 +0000)]
Remove distinfo files before making them and keep distinfo in signed result.

4 years agoAdd distinfo target from dhcpcd to produce signed distinfo files.
Roy Marples [Fri, 4 Nov 2016 16:07:10 +0000 (16:07 +0000)]
Add distinfo target from dhcpcd to produce signed distinfo files.

4 years agoFix offline icon if update_online repeatedly called when carrier and online
Roy Marples [Fri, 12 Aug 2016 19:00:59 +0000 (19:00 +0000)]
Fix offline icon if update_online repeatedly called when carrier and online
are both false.
Thanks to Simon Long.

4 years agoNote that dhcpcd needs to be in Master mode for these tools to work.
Roy Marples [Wed, 3 Aug 2016 23:10:39 +0000 (23:10 +0000)]
Note that dhcpcd needs to be in Master mode for these tools to work.

4 years agoIf we don't understand the AP security (such as EAP) then disable the
Roy Marples [Sun, 31 Jul 2016 13:51:47 +0000 (13:51 +0000)]
If we don't understand the AP security (such as EAP) then disable the
SSID in the menu.
Partial fix for [0ae4f29bf5].

5 years agoYay, 2016
Roy Marples [Mon, 15 Feb 2016 21:44:12 +0000 (21:44 +0000)]
Yay, 2016

5 years agoAdd support for STATIC6
Roy Marples [Mon, 15 Feb 2016 21:20:34 +0000 (21:20 +0000)]
Add support for STATIC6

5 years agoSync
Roy Marples [Fri, 22 Jan 2016 13:47:23 +0000 (13:47 +0000)]
Sync

5 years agoImport new eloop from dhcpcd.
Roy Marples [Fri, 22 Jan 2016 13:42:51 +0000 (13:42 +0000)]
Import new eloop from dhcpcd.

5 years agoNote that we need to write to dhcpcd.conf as well.
Roy Marples [Sat, 14 Nov 2015 21:28:07 +0000 (21:28 +0000)]
Note that we need to write to dhcpcd.conf as well.

6 years agoAdd the IPv4LL type.
Roy Marples [Mon, 29 Jun 2015 15:34:23 +0000 (15:34 +0000)]
Add the IPv4LL type.

6 years agoAdd our own context to make it easier if we need to pass options around.
Roy Marples [Tue, 9 Jun 2015 21:26:09 +0000 (21:26 +0000)]
Add our own context to make it easier if we need to pass options around.

6 years agoAdd the address waiting state, to match the waitip directive in dhcpcd.conf
Roy Marples [Tue, 9 Jun 2015 21:20:08 +0000 (21:20 +0000)]
Add the address waiting state, to match the waitip directive in dhcpcd.conf

6 years agoStore the wpa socket in a per user directory as well.
Roy Marples [Fri, 29 May 2015 20:49:05 +0000 (20:49 +0000)]
Store the wpa socket in a per user directory as well.

6 years agoWEXT is linux only.
Roy Marples [Mon, 18 May 2015 13:45:15 +0000 (13:45 +0000)]
WEXT is linux only.

6 years agoDon't package the doc dir in the tarball.
Roy Marples [Mon, 18 May 2015 11:20:09 +0000 (11:20 +0000)]
Don't package the doc dir in the tarball.

6 years agoAdd a screenshot of dhcpcd-gtk showing a SSID list.
Roy Marples [Mon, 18 May 2015 10:55:48 +0000 (10:55 +0000)]
Add a screenshot of dhcpcd-gtk showing a SSID list.

6 years agouse xz to compress the archive rather than bzip2.
Roy Marples [Mon, 18 May 2015 10:54:00 +0000 (10:54 +0000)]
use xz to compress the archive rather than bzip2.

6 years agoFix tmp dir for >1 user
Roy Marples [Fri, 15 May 2015 14:49:36 +0000 (14:49 +0000)]
Fix tmp dir for >1 user

6 years agoImport new eloop.
Roy Marples [Thu, 14 May 2015 21:47:18 +0000 (21:47 +0000)]
Import new eloop.

6 years agoWork with the new dhcpcd ND option parsing code.
Roy Marples [Thu, 14 May 2015 20:39:58 +0000 (20:39 +0000)]
Work with the new dhcpcd ND option parsing code.

6 years agoImport new eloop
Roy Marples [Wed, 13 May 2015 02:01:42 +0000 (02:01 +0000)]
Import new eloop

6 years agoImport new eloop
Roy Marples [Wed, 13 May 2015 01:54:18 +0000 (01:54 +0000)]
Import new eloop

6 years agoImport new eloop.
Roy Marples [Wed, 13 May 2015 01:34:11 +0000 (01:34 +0000)]
Import new eloop.

6 years agoNo need to remember the fd anymore
Roy Marples [Tue, 12 May 2015 22:18:21 +0000 (22:18 +0000)]
No need to remember the fd anymore

6 years agoWe need to close dhcpcd-wi instances as deleteLater keeps some stuff active
Roy Marples [Tue, 12 May 2015 22:04:26 +0000 (22:04 +0000)]
We need to close dhcpcd-wi instances as deleteLater keeps some stuff active
when it really isn't.

6 years agoFix dhcpcd-online for recent libdhcpcd changes
Roy Marples [Tue, 12 May 2015 21:36:29 +0000 (21:36 +0000)]
Fix dhcpcd-online for recent libdhcpcd changes

6 years agoImprove WPA interaction by allowing the fd to persist in the status cb
Roy Marples [Tue, 12 May 2015 21:19:41 +0000 (21:19 +0000)]
Improve WPA interaction by allowing the fd to persist in the status cb
so it can be closed before actually enforcing it's closure internally.

6 years agoImport new eloop from dhcpcd
Roy Marples [Tue, 12 May 2015 20:22:57 +0000 (20:22 +0000)]
Import new eloop from dhcpcd

6 years agoRemove prior two patches, libevent was a nice experiment but dhcpcd's
Roy Marples [Tue, 12 May 2015 20:18:13 +0000 (20:18 +0000)]
Remove prior two patches, libevent was a nice experiment but dhcpcd's
eloop works better for me.

6 years agoFix compile on Linux and fix some memory errors.
Roy Marples [Mon, 11 May 2015 21:26:07 +0000 (21:26 +0000)]
Fix compile on Linux and fix some memory errors.

6 years agoReplace eloop with libevent in dhcpcd-curses.
Roy Marples [Mon, 11 May 2015 21:09:31 +0000 (21:09 +0000)]
Replace eloop with libevent in dhcpcd-curses.

6 years agoUse constants rather than string comparison for a saner API.
Roy Marples [Mon, 11 May 2015 14:39:53 +0000 (14:39 +0000)]
Use constants rather than string comparison for a saner API.

6 years agoFix compile.
Roy Marples [Wed, 6 May 2015 14:21:50 +0000 (14:21 +0000)]
Fix compile.

6 years agoMove dhcpcd-qt lockfile to DHCPCD_TMP_DIR.
Roy Marples [Wed, 6 May 2015 08:10:59 +0000 (08:10 +0000)]
Move dhcpcd-qt lockfile to DHCPCD_TMP_DIR.
Set DHCPCD_TMP_DIR permissios via a macro rather than hard-coded.

6 years agoClose wpa when done with the interface.
Roy Marples [Tue, 5 May 2015 23:16:50 +0000 (23:16 +0000)]
Close wpa when done with the interface.

6 years agoMove the wpa socket files out of /tmp and into /tmp/dhcpcd
Roy Marples [Tue, 5 May 2015 23:11:58 +0000 (23:11 +0000)]
Move the wpa socket files out of /tmp and into /tmp/dhcpcd

6 years agoRemove debug
Roy Marples [Tue, 5 May 2015 23:03:29 +0000 (23:03 +0000)]
Remove debug

6 years agoAdd a singleton class to ensure that dhcpcd-qt runs once per user per display.
Roy Marples [Tue, 5 May 2015 23:02:51 +0000 (23:02 +0000)]
Add a singleton class to ensure that dhcpcd-qt runs once per user per display.
Dang those pesky session managers!

6 years agoInstall desktop files into /etc/xdg/autostart
Roy Marples [Tue, 5 May 2015 20:53:59 +0000 (20:53 +0000)]
Install desktop files into /etc/xdg/autostart

6 years agoFix for building dhcpcd-qt without notification
Roy Marples [Mon, 6 Apr 2015 21:03:38 +0000 (21:03 +0000)]
Fix for building dhcpcd-qt without notification

6 years agoUpdate the icon to shor the wireless strength correctly if we have wireless
Roy Marples [Mon, 6 Apr 2015 19:15:09 +0000 (19:15 +0000)]
Update the icon to shor the wireless strength correctly if we have wireless
going on/offline and a non wireless interface online.

6 years agoFix compile on Linux.
Roy Marples [Wed, 18 Mar 2015 17:08:22 +0000 (17:08 +0000)]
Fix compile on Linux.

6 years agoImprove qt diagnostics.
Roy Marples [Wed, 18 Mar 2015 17:03:55 +0000 (17:03 +0000)]
Improve qt diagnostics.

6 years agoAdd common.h
Roy Marples [Wed, 18 Mar 2015 17:03:28 +0000 (17:03 +0000)]
Add common.h

6 years agoUpdate copyrights
Roy Marples [Sun, 15 Mar 2015 10:35:16 +0000 (10:35 +0000)]
Update copyrights

6 years agoClean up with new debug flags and gcc.
Roy Marples [Sun, 15 Mar 2015 10:22:12 +0000 (10:22 +0000)]
Clean up with new debug flags and gcc.

6 years agoMove background scanning check to libdhcpcd so that in the future we can
Roy Marples [Sun, 8 Mar 2015 11:17:17 +0000 (11:17 +0000)]
Move background scanning check to libdhcpcd so that in the future we can
detect if the driver/interface actually supports it. This should be possible
on BSD.

If the interface is down, run a background scan always as this won't
disconnect.

6 years agoFix issue when we try and poll for fd -1 by deleting events by argument.
Roy Marples [Sat, 7 Mar 2015 08:53:52 +0000 (08:53 +0000)]
Fix issue when we try and poll for fd -1 by deleting events by argument.
Clear status line correctly when a new status with less chars is set.
Clear summary window when lost connection.
Add msec timeout to reflect the real DHCPCD_RETRYOPEN length.

6 years agoClean up some compile warnings and avoid spamming lost connection on stop.
Roy Marples [Fri, 6 Mar 2015 14:49:51 +0000 (14:49 +0000)]
Clean up some compile warnings and avoid spamming lost connection on stop.

6 years agoImprove configure errors
Roy Marples [Thu, 5 Mar 2015 20:28:52 +0000 (20:28 +0000)]
Improve configure errors

6 years agoFix a segfault if >1 wifi device is present.
Roy Marples [Thu, 5 Mar 2015 20:19:03 +0000 (20:19 +0000)]
Fix a segfault if >1 wifi device is present.