File tree 3 files changed +13
-8
lines changed
3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -4,5 +4,6 @@ if [ -d "build" ]; then
4
4
rm -rf build
5
5
fi
6
6
7
- cmake -B build/plugin -S . -DBUILD_PLUGIN=ON -DCMAKE_INSTALL_PREFIX=~ /.local
8
- cmake --build build/plugin && cmake --install build/plugin
7
+ # Install plugin system-wide (required for qml modules)
8
+ cmake -B build/plugin -S . -DBUILD_PLUGIN=ON -DCMAKE_INSTALL_PREFIX=/usr
9
+ cmake --build build/plugin && sudo cmake --install build/plugin
Original file line number Diff line number Diff line change @@ -5,9 +5,14 @@ if [ -d "build" ]; then
5
5
fi
6
6
7
7
# Install widget for current user
8
- cmake -B build/ -S . -DINSTALL_PLASMOID=ON -DBUILD_PLUGIN =ON -DCMAKE_INSTALL_PREFIX=~ /.local
9
- cmake --build build/
10
- cmake --install build/
8
+ cmake -B build/plasmoid -S . -DINSTALL_PLASMOID=ON -DCMAKE_INSTALL_PREFIX=~ /.local
9
+ cmake --build build/plasmoid
10
+ cmake --install build/plasmoid
11
11
# CMakeLists.txt plasma_install_package does't copy executable permission
12
12
chmod 700 " $HOME /.local/share/plasma/plasmoids/luisbocanegra.panel.colorizer/contents/ui/tools/list_presets.sh"
13
13
chmod 700 " $HOME /.local/share/plasma/plasmoids/luisbocanegra.panel.colorizer/contents/ui/tools/gdbus_get_signal.sh"
14
+
15
+ # Install plugin system-wide (required for qml modules)
16
+ cmake -B build/plugin -S . -DBUILD_PLUGIN=ON -DCMAKE_INSTALL_PREFIX=/usr
17
+ cmake --build build/plugin
18
+ sudo cmake --install build/plugin
Original file line number Diff line number Diff line change 1
1
set (PLUGIN_NAME "panelcolorizerplugin" )
2
2
set (LIB_NAME "panelcolorizer" )
3
- set (PLUGIN_ID "luisbocanegra.panel.colorizer" )
4
3
5
4
add_library (${PLUGIN_NAME} SHARED ${PLUGIN_NAME} .cpp ${LIB_NAME} .cpp)
6
5
@@ -9,5 +8,5 @@ target_link_libraries(${PLUGIN_NAME}
9
8
Qt6::Qml
10
9
)
11
10
12
- install (TARGETS ${PLUGIN_NAME} DESTINATION ${PLASMA_DATA_INSTALL_DIR} /plasmoids/ ${PLUGIN_ID} /contents/ui )
13
- install (FILES qmldir DESTINATION ${PLASMA_DATA_INSTALL_DIR} /plasmoids/ ${PLUGIN_ID} /contents/ui )
11
+ install (TARGETS ${PLUGIN_NAME} DESTINATION ${KDE_INSTALL_QMLDIR} /org/kde/plasma/ ${LIB_NAME} )
12
+ install (FILES qmldir DESTINATION ${KDE_INSTALL_QMLDIR} /org/kde/plasma/ ${LIB_NAME} )
You can’t perform that action at this time.
0 commit comments