Skip to content

Commit 2fa7568

Browse files
authored
Merge pull request slgobinath#755 from deltragon/unneeded-deps
remove unneeded dependencies
2 parents 52b603e + 95c2bcf commit 2fa7568

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

safeeyes/plugins/donotdisturb/dependency_checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def validate(plugin_config, plugin_settings):
3030
return None
3131
command = "wlrctl"
3232
else:
33-
command = "xprop"
33+
return None
3434
if not utility.command_exist(command):
3535
return _("Please install the command-line tool '%s'") % command
3636
else:

safeeyes/plugins/trayicon/dependency_checker.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
# You should have received a copy of the GNU General Public License
1717
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1818

19-
from safeeyes import utility
2019
from safeeyes.model import PluginDependency
2120
from safeeyes.translations import translate as _
2221

@@ -48,15 +47,3 @@ def validate(plugin_config, plugin_settings):
4847
link="https://github.com/slgobinath/SafeEyes/wiki/How-to-install-backend-for-Safe-Eyes-tray-icon",
4948
retryable=True,
5049
)
51-
52-
command = None
53-
if utility.IS_WAYLAND:
54-
if utility.DESKTOP_ENVIRONMENT == "gnome":
55-
return None
56-
command = "wlrctl"
57-
else:
58-
command = "xprop"
59-
if not utility.command_exist(command):
60-
return _("Please install the command-line tool '%s'") % command
61-
else:
62-
return None

0 commit comments

Comments
 (0)