Hey f3bruary,
Thanks for the feedback. You shouldn't run the application with super user rights. The program wil issue a sudo command and prompt for said password when necessary. This command can be changed with the -S flag
By default this is 'sudo -A' which will spawn a ssh-askpass prompt.
Search Criteria
Package Details: netctltray 0.2-1
Package Actions
| Package Base: | netctltray |
|---|---|
| Description: | Tray icon to switch netctl profiles. |
| Upstream URL: | https://github.com/dopefishh/netctl-tray |
| Category: | network |
| Licenses: | |
| Submitter: | dopefishh |
| Maintainer: | dopefishh |
| Last Packager: | dopefishh |
| Votes: | 1 |
| First Submitted: | 2015-02-12 12:29 |
| Last Updated: | 2015-03-02 11:55 |
Dependencies (4)
- python
- python-pyside
- sudo (optional) – Get permission to run netctl
- x11-ssh-askpass (optional) – Graphical password entry
Required by (0)
Sources
- https://github.com/dopefishh/netctl-tray/archive/0.2a.tar.gz
- netctltray.install
Latest Comments
Comment by dopefishh
Comment by f3bruary
X Error: BadAccess (attempt to access private resource denied) 10
Extension: 130 (MIT-SHM)
Minor opcode: 1 (X_ShmAttach)
Resource id: 0x168
X Error: BadShmSeg (invalid shared segment parameter) 128
Extension: 130 (MIT-SHM)
Minor opcode: 5 (X_ShmCreatePixmap)
Resource id: 0xd5
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Major opcode: 62 (X_CopyArea)
Resource id: 0x2000029
If I understand correct, this is because sudo isn't meant for graphical apps. How else am I supposed to run this ? Regular user doesn't have permission.
Comment by dopefishh
Aw, forgot to list pyside as a dependency. Will fix this tomorrow. To fix the problem now you can install python-pyside at it should be fixed.
Best,
Mart
Comment by Mex
Traceback (most recent call last):
File "/usr/bin/netctltray", line 3, in <module>
from PySide import QtGui
ImportError: No module named 'PySide'
Comment by cokomoko
This problem is solved,thanks.
Comment by dopefishh
SVG resources are searched for in /opt/netctltray when the program is runs from /usr/bin. Otherwise the program looks in the current directory. I have no clue why the program is linked to /usr/sbin too. I fixed the problem with the new release that I will upload in a minute.
I advise you not to run the program with super user rights, only the netctl commands are prefixed(by default with 'sudo -A' but this can be set via the -S flag.
Thanks for the feedback!!
Comment by cokomoko
icon.svg and check.svg problem:
sudo netctltray
[sudo] password for cokomoko:
Cannot open file '/usr/sbin/check.svg', because: No such file or directory
Cannot open file '/usr/sbin/check.svg', because: No such file or directory
Cannot open file '/usr/sbin/icon.svg', because: No such file or directory
Cannot open file '/usr/sbin/icon.svg', because: No such file or directory
Traceback (most recent call last):
File "/usr/sbin/netctltray", line 45, in sig_triggered
self.tray.show_status()
File "/usr/sbin/netctltray", line 84, in show_status
status = list(netctl.get_statussus())
File "/opt/netctltray/netctl.py", line 72, in get_statussus
ip = ips['inet6'] if prefer_ipv6 and 'inet6' in ips else ips['inet']
KeyError: 'inet'