brezerk / q4wine

Q4Wine is a Qt GUI for W.I.N.E. It will help you manage wine prefixes and installed applications.
http://q4wine.brezblock.org.ua/
GNU General Public License v3.0
207 stars 40 forks source link

No menu shortcuts #129

Closed yochananmarqos closed 6 years ago

yochananmarqos commented 6 years ago

The last time I installed q4wine on a different computer it created a q4wine menu entry with all the shortcuts like winecfg, wineconsole, etc. I built 1.3.7 from the AUR on Manjaro Linux Cinnamon today and there are no menu entries.

~/.local/share/applications
├── q4wine
│   └── Default
│       ├── autostart
│       └── import
brezerk commented 6 years ago

hi @yochananmarqos

Make sure you have following option enabled:

image

yochananmarqos commented 6 years ago

I do, it's enabled by default. I tried removing and regenerating the desktop menu entries to no avail.

brezerk commented 6 years ago

hm.....

mkay. do you have anything in the ~/.local/share/desktop-directories directory?

yochananmarqos commented 6 years ago

Yes, but since there are no entries in the directory, it does not appear in the menu.

.
├── chrome-apps.directory
├── q4wine-Default-autostart.directory
├── q4wine-Default.directory
├── q4wine-Default-import.directory
├── q4wine-q4wine.directory
├── wine-Programs.directory
├── wine-Programs-Steam.directory
└── wine-wine.directory

0 directories, 8 files
brezerk commented 6 years ago

okay. what about find ~/.local/share/applications/q4wine/ -type f ?

yochananmarqos commented 6 years ago

No results just as the directory tree shows above.

brezerk commented 6 years ago

=\

do you have ability to build q4wine from sources with -DDEBUG=ON build flag set?

yochananmarqos commented 6 years ago

I'm not sure how to build with the debug flag on, no. What would I need to change in the existing PKGBUILD to do it?

brezerk commented 6 years ago

hm... not sure.

See https://github.com/brezerk/q4wine/blob/master/INSTALL

On step 5 enable DEBUG mode via:

5. $ cmake -DRELESE=OFF -DDEBUG=ON ..

No need to run make install -- this will be local dev version. You will be able to start q4wine via <source_dir>/build/src/q4wine-gui/q4wine

yochananmarqos commented 6 years ago

I received an error building:

$ cmake -DRELEASE=OFF -DDEBUG=ON ..

 * Utility for Wine applications and prefixes management.
 * Copyright (C) 2008-2018 by Oleksii S. Malakhov <brezerk@gmail.com>
 * http://brezblock.org.ua/

-- Q4Wine build environment -- 

-- Fount Qt Core version ; 5.11.0
-- Build realm is   : Linux x86_64

-- Q4Wine build options --

-- Version                       : 1.3.7

-- Build Q4Wine in development mode (RELEASE=OFF) --

-- DEBUG                         : ON
-- RELEASE                       : OFF
-- QT5                           : ON
-- WITH_ICOUTILS                 : ON
-- WITH_SYSTEM_SINGLEAPP         : OFF
-- WITH_WINEAPPDB                : ON
-- USE_BZIP2                     : OFF
-- USE_GZIP                      : OFF
-- WITH_DBUS                     : ON

-- LINGUAS                       : af;cs;de;en;es;fa;he;it;ja;pl;pt_BR;ru;uk;zh_TW;zh_CN;fr

-- See INSTALL file for details and more info --

-- Searching for fuseiso binary --

--     fuseiso : /usr/bin/fuseiso

-- Searching for icoutils binaries (WITH_ICOUTILS=ON) --

--     wrestool : /usr/bin/wrestool
--     icotool  : /usr/bin/icotool

CMake Error at src/qtsingleapplication/CMakeLists.txt:26 (qt5_use_modules):
  Unknown CMake command "qt5_use_modules".

-- Configuring incomplete, errors occurred!
See also "/home/yochanan/q4wine-1.3.7/build/CMakeFiles/CMakeOutput.log".

CMakeOutput.log

tehnick commented 6 years ago
-- Fount Qt Core version ; 5.11.0
...
  Unknown CMake command "qt5_use_modules".

This problem is fixed in git master branch.

tehnick commented 6 years ago

See #125

yochananmarqos commented 6 years ago

Oh, right. I forgot the AUR q4wine PKGBUILD uses this patch. I built it successfully from q4wine.git, but nothing happens attempting to regenerate the desktop menu. Where is the log saved?

brezerk commented 6 years ago

hi @yochananmarqos

Logs should be written into stderr/stdout. You will need to run <source_dir>/build/src/q4wine-gui/q4wine via xterm or any other terminal.

yochananmarqos commented 6 years ago
$ ./q4wine 
qt5ct: using qt5ct plugin
[ii] l10n path:  "/home/yochanan/q4wine/build/src/l10n"
[ii] Lang to load:  "q4wine_en_US"
[ii] Loading translation:  "q4wine_en_US"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/db"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/icons"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/prefixes"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/tmp"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/theme"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/tmp/cache"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/scripts"
[ii] Check for directory:  "/home/yochanan/.local/share/wineprefixes"
[ii] Init database engine
[ii] Loading QSQLITE driver...
[ii] Loading database file:  "/home/yochanan/.config/q4wine/db/generic.dat"
[ii] Check for table:  "prefix"
[ii] Check for table:  "dir"
[ii] Check for table:  "icon"
[ii] Check for table:  "images"
[ii] Check for table:  "last_run_icon"
[ii] Check for table:  "logging"
[ii] Check for table:  "providers"
[ii] Check for table:  "sysconfig"
[ii] Check for table:  "versions"
[DD] Remove dir  "/home/yochanan/.config/q4wine/tmp/cache"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/tmp"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/tmp/cache"
qt5ct: D-Bus global menu: no
[ii] Creating Q4Wine socket
[ii] Socket file name: "/tmp/q4wine-1000.sock"
qt.svg: <input>:7064: Could not resolve property: radialGradient3709
qt.svg: <input>:647:190: Could not resolve property: linearGradient5167
qt.svg: <input>:647:190: Could not resolve property: linearGradient5167
qt.svg: <input>:6354: Could not resolve property: linearGradient5167
qt.svg: <input>:6354: Could not resolve property: linearGradient5167
qt.svg: <input>:5672: Could not resolve property: radialGradient3709
qt.svg: <input>:647:190: Could not resolve property: linearGradient5167
qt.svg: <input>:5672: Could not resolve property: radialGradient3709
qt.svg: <input>:7064: Could not resolve property: radialGradient3709
qt.svg: <input>:684: Could not resolve property: pattern5614
qt.svg: <input>:684: Could not resolve property: pattern5626
qt.svg: <input>:684: Could not resolve property: pattern5614
qt.svg: <input>:684: Could not resolve property: pattern5626
qt.svg: <input>:679: Could not resolve property: pattern5614
qt.svg: <input>:679: Could not resolve property: pattern5626
qt5ct: D-Bus system tray: no
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-q4wine.directory" "/home/yochanan/.local/share/applications/q4wine"
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-Default.directory" "/home/yochanan/.local/share/applications/q4wine/Default"
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-Default-autostart.directory" "/home/yochanan/.local/share/applications/q4wine/Default/autostart"
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-Default-import.directory" "/home/yochanan/.local/share/applications/q4wine/Default/import"
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-q4wine.directory" "/home/yochanan/.local/share/applications/q4wine"
qt.svg: <input>:7092: Could not resolve property: linearGradient3592
qt.svg: <input>:7092: Could not resolve property: linearGradient7999
qt.svg: <input>:7092: Could not resolve property: radialGradient2943
qt.svg: <input>:6850: Could not resolve property: radialGradient2943
qt.svg: <input>:6354: Could not resolve property: linearGradient5167
qt.svg: <input>:6354: Could not resolve property: linearGradient5167
qt.svg: <input>:7064: Could not resolve property: radialGradient3709
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-q4wine.directory" "/home/yochanan/.local/share/applications/q4wine"
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-Default.directory" "/home/yochanan/.local/share/applications/q4wine/Default"
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-Default-autostart.directory" "/home/yochanan/.local/share/applications/q4wine/Default/autostart"
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-Default-import.directory" "/home/yochanan/.local/share/applications/q4wine/Default/import"
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-q4wine.directory" "/home/yochanan/.local/share/applications/q4wine"
brezerk commented 6 years ago

Interesting... Can you post also logs after clicking 'Regenerate desktop menu' please?

I might need to add some more debug also. Will tackle it this evening.

yochananmarqos commented 6 years ago

Nothing appeared in journalctl.

brezerk commented 6 years ago

Hi @yochananmarqos I was referring to app log (stderr,stdout), rather the system log, sorry.

also I have added some more debug routine: https://github.com/brezerk/q4wine/commit/82e68e167292f4db00b238c3c819278c9f66f2bc try to pull this changes, rebuild and rerun.

Clicking 'Regenerate desktop menu' button in App settings and post the application log (stderr,stdout) please.

yochananmarqos commented 6 years ago

I did attempt regenerating the desktop menu during that log. Here's another doing the same after a rebuild:

$ ./q4wine 
qt5ct: using qt5ct plugin
[ii] l10n path:  "/home/yochanan/q4wine/build/src/l10n"
[ii] Lang to load:  "q4wine_en_US"
[ii] Loading translation:  "q4wine_en_US"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/db"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/icons"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/prefixes"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/tmp"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/theme"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/tmp/cache"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/scripts"
[ii] Check for directory:  "/home/yochanan/.local/share/wineprefixes"
[ii] Init database engine
[ii] Loading QSQLITE driver...
[ii] Loading database file:  "/home/yochanan/.config/q4wine/db/generic.dat"
[ii] Check for table:  "prefix"
[ii] Check for table:  "dir"
[ii] Check for table:  "icon"
[ii] Check for table:  "images"
[ii] Check for table:  "last_run_icon"
[ii] Check for table:  "logging"
[ii] Check for table:  "providers"
[ii] Check for table:  "sysconfig"
[ii] Check for table:  "versions"
[DD] Remove dir  "/home/yochanan/.config/q4wine/tmp/cache"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/tmp"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/tmp/cache"
qt5ct: D-Bus global menu: no
[ii] Creating Q4Wine socket
[ii] Socket file name: "/tmp/q4wine-1000.sock"
qt.svg: <input>:7064: Could not resolve property: radialGradient3709
qt.svg: <input>:647:190: Could not resolve property: linearGradient5167
qt.svg: <input>:647:190: Could not resolve property: linearGradient5167
qt.svg: <input>:6354: Could not resolve property: linearGradient5167
qt.svg: <input>:6354: Could not resolve property: linearGradient5167
qt.svg: <input>:5672: Could not resolve property: radialGradient3709
qt.svg: <input>:647:190: Could not resolve property: linearGradient5167
qt.svg: <input>:5672: Could not resolve property: radialGradient3709
qt.svg: <input>:7064: Could not resolve property: radialGradient3709
qt.svg: <input>:684: Could not resolve property: pattern5614
qt.svg: <input>:684: Could not resolve property: pattern5626
qt.svg: <input>:684: Could not resolve property: pattern5614
qt.svg: <input>:684: Could not resolve property: pattern5626
qt.svg: <input>:679: Could not resolve property: pattern5614
qt.svg: <input>:679: Could not resolve property: pattern5626
qt5ct: D-Bus system tray: no
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-q4wine.directory" "/home/yochanan/.local/share/applications/q4wine"
[DD] system_menu::generateSystemMenu:  ""   ""
[DD] system_menu::generateSystemMenu: export_sysdir  false
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-Default.directory" "/home/yochanan/.local/share/applications/q4wine/Default"
[DD] system_menu::generateSystemMenu: on prefix:  "Default"
[DD] system_menu::generateSystemMenu: on subdir:  "autostart"
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-Default-autostart.directory" "/home/yochanan/.local/share/applications/q4wine/Default/autostart"
[DD] system_menu::generateSystemMenu: on subdir:  "import"
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-Default-import.directory" "/home/yochanan/.local/share/applications/q4wine/Default/import"
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-q4wine.directory" "/home/yochanan/.local/share/applications/q4wine"
qt.svg: <input>:7092: Could not resolve property: linearGradient3592
qt.svg: <input>:7092: Could not resolve property: linearGradient7999
qt.svg: <input>:7092: Could not resolve property: radialGradient2943
qt.svg: <input>:6850: Could not resolve property: radialGradient2943
qt.svg: <input>:6354: Could not resolve property: linearGradient5167
qt.svg: <input>:6354: Could not resolve property: linearGradient5167
qt.svg: <input>:7064: Could not resolve property: radialGradient3709
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-q4wine.directory" "/home/yochanan/.local/share/applications/q4wine"
[DD] system_menu::generateSystemMenu:  ""   ""
[DD] system_menu::generateSystemMenu: export_sysdir  false
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-Default.directory" "/home/yochanan/.local/share/applications/q4wine/Default"
[DD] system_menu::generateSystemMenu: on prefix:  "Default"
[DD] system_menu::generateSystemMenu: on subdir:  "autostart"
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-Default-autostart.directory" "/home/yochanan/.local/share/applications/q4wine/Default/autostart"
[DD] system_menu::generateSystemMenu: on subdir:  "import"
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-Default-import.directory" "/home/yochanan/.local/share/applications/q4wine/Default/import"
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-q4wine.directory" "/home/yochanan/.local/share/applications/q4wine"
brezerk commented 6 years ago

Hi @yochananmarqos it seems like export_sysdir is not enabled:

[DD] system_menu::generateSystemMenu: export_sysdir  false

Try to check "Export 'system' folder" option: image

yochananmarqos commented 6 years ago

The export system folder option is not enabled by default, so I never tried it. I enabled it and tried regenerating desktop menus, but it didn't make any difference. It created ~/.local/share/desktop-directories/q4wine-Default-system.directory, but it's empty.

$ ./q4wine 
qt5ct: using qt5ct plugin
[ii] l10n path:  "/home/yochanan/q4wine/build/src/l10n"
[ii] Lang to load:  "q4wine_en_US"
[ii] Loading translation:  "q4wine_en_US"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/db"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/icons"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/prefixes"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/tmp"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/theme"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/tmp/cache"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/scripts"
[ii] Check for directory:  "/home/yochanan/.local/share/wineprefixes"
[ii] Init database engine
[ii] Loading QSQLITE driver...
[ii] Loading database file:  "/home/yochanan/.config/q4wine/db/generic.dat"
[ii] Check for table:  "prefix"
[ii] Check for table:  "dir"
[ii] Check for table:  "icon"
[ii] Check for table:  "images"
[ii] Check for table:  "last_run_icon"
[ii] Check for table:  "logging"
[ii] Check for table:  "providers"
[ii] Check for table:  "sysconfig"
[ii] Check for table:  "versions"
[DD] Remove dir  "/home/yochanan/.config/q4wine/tmp/cache"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/tmp"
[ii] Check for directory:  "/home/yochanan/.config/q4wine/tmp/cache"
qt5ct: D-Bus global menu: no
[ii] Creating Q4Wine socket
[ii] Socket file name: "/tmp/q4wine-1000.sock"
qt.svg: <input>:7064: Could not resolve property: radialGradient3709
qt.svg: <input>:647:190: Could not resolve property: linearGradient5167
qt.svg: <input>:647:190: Could not resolve property: linearGradient5167
qt.svg: <input>:6354: Could not resolve property: linearGradient5167
qt.svg: <input>:6354: Could not resolve property: linearGradient5167
qt.svg: <input>:5672: Could not resolve property: radialGradient3709
qt.svg: <input>:647:190: Could not resolve property: linearGradient5167
qt.svg: <input>:5672: Could not resolve property: radialGradient3709
qt.svg: <input>:7064: Could not resolve property: radialGradient3709
qt.svg: <input>:684: Could not resolve property: pattern5614
qt.svg: <input>:684: Could not resolve property: pattern5626
qt.svg: <input>:684: Could not resolve property: pattern5614
qt.svg: <input>:684: Could not resolve property: pattern5626
qt.svg: <input>:679: Could not resolve property: pattern5614
qt.svg: <input>:679: Could not resolve property: pattern5626
qt5ct: D-Bus system tray: no
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-q4wine.directory" "/home/yochanan/.local/share/applications/q4wine"
[DD] system_menu::generateSystemMenu:  ""   ""
[DD] system_menu::generateSystemMenu: export_sysdir  false
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-Default.directory" "/home/yochanan/.local/share/applications/q4wine/Default"
[DD] system_menu::generateSystemMenu: on prefix:  "Default"
[DD] system_menu::generateSystemMenu: on subdir:  "autostart"
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-Default-autostart.directory" "/home/yochanan/.local/share/applications/q4wine/Default/autostart"
[DD] system_menu::generateSystemMenu: on subdir:  "import"
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-Default-import.directory" "/home/yochanan/.local/share/applications/q4wine/Default/import"
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-q4wine.directory" "/home/yochanan/.local/share/applications/q4wine"
qt.svg: <input>:7092: Could not resolve property: linearGradient3592
qt.svg: <input>:7092: Could not resolve property: linearGradient7999
qt.svg: <input>:7092: Could not resolve property: radialGradient2943
qt.svg: <input>:6850: Could not resolve property: radialGradient2943
qt.svg: <input>:6354: Could not resolve property: linearGradient5167
qt.svg: <input>:6354: Could not resolve property: linearGradient5167
qt.svg: <input>:7064: Could not resolve property: radialGradient3709
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
qt.svg: <input>:4290: Could not resolve property: pattern5614
qt.svg: <input>:4290: Could not resolve property: pattern5626
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-q4wine.directory" "/home/yochanan/.local/share/applications/q4wine"
[DD] system_menu::generateSystemMenu:  ""   ""
[DD] system_menu::generateSystemMenu: export_sysdir  true
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-Default.directory" "/home/yochanan/.local/share/applications/q4wine/Default"
[DD] system_menu::generateSystemMenu: on prefix:  "Default"
[DD] system_menu::generateSystemMenu: on subdir:  "system"
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-Default-system.directory" "/home/yochanan/.local/share/applications/q4wine/Default/system"
[DD] system_menu::generateSystemMenu: createDesktopFile  "Default"   "system"   "winecfg"
[DD] system_menu::generateSystemMenu: createDesktopFile  "Default"   "system"   "wineconsole"
[DD] system_menu::generateSystemMenu: createDesktopFile  "Default"   "system"   "uninstaller"
[DD] system_menu::generateSystemMenu: createDesktopFile  "Default"   "system"   "regedit"
[DD] system_menu::generateSystemMenu: createDesktopFile  "Default"   "system"   "explorer"
[DD] system_menu::generateSystemMenu: createDesktopFile  "Default"   "system"   "eject"
[DD] system_menu::generateSystemMenu: createDesktopFile  "Default"   "system"   "wordpad"
[DD] system_menu::generateSystemMenu: createDesktopFile  "Default"   "system"   "taskmgr"
[DD] system_menu::generateSystemMenu: createDesktopFile  "Default"   "system"   "winemine"
[DD] system_menu::generateSystemMenu: createDesktopFile  "Default"   "system"   "oleview"
[DD] system_menu::generateSystemMenu: createDesktopFile  "Default"   "system"   "notepad"
[DD] system_menu::generateSystemMenu: createDesktopFile  "Default"   "system"   "iexplore"
[DD] system_menu::generateSystemMenu: createDesktopFile  "Default"   "system"   "control"
[DD] system_menu::generateSystemMenu: on subdir:  "autostart"
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-Default-autostart.directory" "/home/yochanan/.local/share/applications/q4wine/Default/autostart"
[DD] system_menu::generateSystemMenu: on subdir:  "import"
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-Default-import.directory" "/home/yochanan/.local/share/applications/q4wine/Default/import"
[DD] cr_dir_info: "/home/yochanan/.local/share/desktop-directories/q4wine-q4wine.directory" "/home/yochanan/.local/share/applications/q4wine"
brezerk commented 6 years ago

From what I see, it has created following icons:

[DD] system_menu::generateSystemMenu: createDesktopFile  "Default"   "system"   "winecfg"
[DD] system_menu::generateSystemMenu: createDesktopFile  "Default"   "system"   "wineconsole"
[DD] system_menu::generateSystemMenu: createDesktopFile  "Default"   "system"   "uninstaller"
[DD] system_menu::generateSystemMenu: createDesktopFile  "Default"   "system"   "regedit"
[DD] system_menu::generateSystemMenu: createDesktopFile  "Default"   "system"   "explorer"
[DD] system_menu::generateSystemMenu: createDesktopFile  "Default"   "system"   "eject"
[DD] system_menu::generateSystemMenu: createDesktopFile  "Default"   "system"   "wordpad"
[DD] system_menu::generateSystemMenu: createDesktopFile  "Default"   "system"   "taskmgr"
[DD] system_menu::generateSystemMenu: createDesktopFile  "Default"   "system"   "winemine"
[DD] system_menu::generateSystemMenu: createDesktopFile  "Default"   "system"   "oleview"
[DD] system_menu::generateSystemMenu: createDesktopFile  "Default"   "system"   "notepad"
[DD] system_menu::generateSystemMenu: createDesktopFile  "Default"   "system"   "iexplore"
[DD] system_menu::generateSystemMenu: createDesktopFile  "Default"   "system"   "control"

can you try find ~/.local/share/applications/q4wine/ -type f please?

yochananmarqos commented 6 years ago

Oh, I forgot to check there. It did create the desktop files, but again there are still no menu entries.

$ find ~/.local/share/applications/q4wine/ -type f
/home/yochanan/.local/share/applications/q4wine/Default/system/control.desktop
/home/yochanan/.local/share/applications/q4wine/Default/system/iexplore.desktop
/home/yochanan/.local/share/applications/q4wine/Default/system/notepad.desktop
/home/yochanan/.local/share/applications/q4wine/Default/system/eject.desktop
/home/yochanan/.local/share/applications/q4wine/Default/system/uninstaller.desktop
/home/yochanan/.local/share/applications/q4wine/Default/system/taskmgr.desktop
/home/yochanan/.local/share/applications/q4wine/Default/system/oleview.desktop
/home/yochanan/.local/share/applications/q4wine/Default/system/wordpad.desktop
/home/yochanan/.local/share/applications/q4wine/Default/system/winecfg.desktop
/home/yochanan/.local/share/applications/q4wine/Default/system/regedit.desktop
/home/yochanan/.local/share/applications/q4wine/Default/system/wineconsole.desktop
/home/yochanan/.local/share/applications/q4wine/Default/system/explorer.desktop
/home/yochanan/.local/share/applications/q4wine/Default/system/winemine.desktop
brezerk commented 6 years ago

hm.... not sure at this point :)

for KDE usually it takes few seconds to peek up the changes in the ~/.local/share/applications/ folder.

which one DE are you using? does DE session logout/login helps?

yochananmarqos commented 6 years ago

I'm using Cinnamon 3.8.4. Logging out / in didn't help.

brezerk commented 6 years ago

hi @yochananmarqos

So, regarding Cinnamon: https://developer.gnome.org/integration-guide/stable/desktop-files.html.en

From what I see:

  1. GNOME seems to be freedesktop.org-compliant desktop,
  2. Place this file in the /usr/share/applications directory so that it is accessible by everyone, or in ~/.local/share/applications if you only wish to make it accessible to a single user.
  3. I can't find anything related to custom folders atm.

Both 1-t and 2-nd requirements are satisfied by q4wine-generated icons. And it work perfectly on my KDE box. So I might need some help on debugging this :)

  1. Can you create a simple desktop file in the ~/.local/share/applications (you may use document above as a reference) and confirm if it is getting populated in to the Cinnamon menu?
  2. Can you play around any of q4wine-generated desktop files to see if it is missing any option (I would guess it is probably missing Categories tag).
yochananmarqos commented 6 years ago

I just reinstalled q4wine from the AUR and now regenerating the icons works. I now have the q4wine submenu with all the tools. A few things were updated recently, so maybe that had something to do with it? ¯\_(ツ)_/¯

cmake (3.11.3-1 -> 3.11.4-1) qt5-base, qt5-svg, qt5-tools (5.11.0-1 -> 5.11.1-1) cinnamon (3.8.4-1 -> 3.8.6-1)

brezerk commented 6 years ago

hm.... I don't really think it is related to q4wine and/or qt. probably a bug with cinnamon and/or something related :)

anyway, I am glad it is working now :) thank you for the feedback!

I am going to close this ticket. Feel free to reopen if needed.