From 8d66cbc53792d6c2dac2fb8723e7d02ee104af30 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Sat, 28 Jul 2012 17:00:00 +0200 Subject: [PATCH] qasim-gui: Use resource file for systray icon. --- bin/qasim-gui.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/qasim-gui.rb b/bin/qasim-gui.rb index 98dc54b..0e57366 100755 --- a/bin/qasim-gui.rb +++ b/bin/qasim-gui.rb @@ -19,6 +19,8 @@ require 'qasim/constants' require 'qasim/config' require 'qasim/map' +require 'qasim/qasim_qrc' + # QaSiM // Qt Sshfs Mapper def _ str @@ -181,7 +183,7 @@ module Qasim @app = Qt::Application.new(ARGV) si = Qt::SystemTrayIcon.new - std_icon = Qt::Icon.new( File.join APP_ICON_PATH, "qasim.svg" ) + std_icon = Qt::Icon.new( ":/qasim/qasim-icon" ) #File.join APP_ICON_PATH, "qasim.svg" ) alt_icon = Qt::Icon.new blinking = false