
QMyMenu
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
A tray icon for *nix, with support for dynamic menus.
This is my first program using Qt, as well as my first programming contribution to the free software world. So don't really expect this to be perfect !
The main reason for making this was because of the "dynamic menus" feature from pekwm that I missed after making the switch to KDE. It was also a pretty easy program for me to start.
The program installs a sample config file, which you can use as base (~/.qmymenurc). There's two sample scripts that you can also use for dynamic menus, qmymenu-fstab and qmymenu-network).
I don't use KDE dependencies to make it more usable on other desktops. It's possible for example to replace "RunAsRoot" with "RunAsRoot = GTK" if you prefer GNOME/Xfce (for using gksu over kdesu).
How to Build:
$ cd QMyMenu
$ qmake #(from your qt4 distribution)
$ make
$ make install
13 years ago
0.1
--
* Context menu with launchers, icons, subdirs
* Dynamically-generated menus
* No icon lookup, desktop file support, I will try to get this into the next release
(freedesktop XDG)
13 years ago
0.1
--
* Context menu with launchers, icons, subdirs
* Dynamically-generated menus
* No icon lookup, desktop file support, I will try to get this into the next release
(freedesktop XDG)
darken
4 years ago
__________________________________________________________
[email protected]:/home/darkend/Descargas/qmymenu# qmake
[email protected]:/home/darkend/Descargas/qmymenu# make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o main.o main.cpp
main.cpp:1:24: fatal error: QApplication: No existe el fichero o el directorio
compilation terminated.
make: *** [main.o] Error 1
__________________________________________________
Report
musher0
11 years ago
Very useful! No problem compiling and installing on PuppyLinux 4.12.
In line your approach, this makes a great addition to a small wm which I'm trying to "cushion" and make less disorienting through a stand-alone tray.
Many thanks.
Report
sghsgm
12 years ago
i tried to build your app, but i got error.
errors is following
------------------------------------------
ExecAction.cpp: In member function 'void ExecAction::runCommand()':
ExecAction.cpp:12: error: 'fork' was not declared in this scope
-------------------------------------------
how can i solve this problem or process fork function.
im working in qt4.3.4 and msvc2005.
regards.
Report
vovanec
13 years ago
Report