diff --git a/dist/MacOSBundlePython.cmake.in b/dist/MacOSBundlePython.cmake.in
index 19fcf035..d5c617c3 100644
--- a/dist/MacOSBundlePython.cmake.in
+++ b/dist/MacOSBundlePython.cmake.in
@@ -12,7 +12,7 @@ execute_process(COMMAND
"${EMBED_PYTHON_SH}"
"${PYTHON_FRAMEWORK_DIR}"
"${BUNDLE_PATH}"
- "${BUNDLE_PATH}/Contents/MacOS/Cutter"
+ "${BUNDLE_PATH}/Contents/MacOS/cutter"
RESULT_VARIABLE SCRIPT_RESULT)
if(SCRIPT_RESULT)
message(FATAL_ERROR "Failed to bundle python")
diff --git a/dist/MacOSSetupBundle.cmake.in b/dist/MacOSSetupBundle.cmake.in
index 807d2f00..3666bae7 100644
--- a/dist/MacOSSetupBundle.cmake.in
+++ b/dist/MacOSSetupBundle.cmake.in
@@ -39,7 +39,7 @@ foreach(_lib ${ADJUST_RIZIN_LIBS})
# Cutter reference to lib
run_or_die(COMMAND install_name_tool
-change "${_lib}" "@rpath/${_name}"
- "${EXECUTABLE_DIR}/Cutter")
+ "${EXECUTABLE_DIR}/cutter")
# lib LC_ID_DYLIB
run_or_die(COMMAND install_name_tool
-id "@rpath/${_name}"
@@ -57,10 +57,10 @@ endforeach()
# Add rpaths because macdeployqt fails to do that properly
run_or_die(COMMAND install_name_tool
-add_rpath "@executable_path/../Frameworks"
- "${EXECUTABLE_DIR}/Cutter")
+ "${EXECUTABLE_DIR}/cutter")
run_or_die(COMMAND install_name_tool
-add_rpath "@executable_path/../Resources/lib"
- "${EXECUTABLE_DIR}/Cutter")
+ "${EXECUTABLE_DIR}/cutter")
set(MACDEPLOYQT_COMMAND "${MACDEPLOYQT_PATH}" "${BUNDLE_PATH}" "-verbose=2" "-libpath=${CMAKE_INSTALL_PREFIX}/lib")
message("Running macdeployqt \"${MACDEPLOYQT_COMMAND}\"")
diff --git a/dist/WindowsBundleQt.cmake b/dist/WindowsBundleQt.cmake
index 9a1ce0ab..c9140140 100644
--- a/dist/WindowsBundleQt.cmake
+++ b/dist/WindowsBundleQt.cmake
@@ -1,5 +1,5 @@
message("Running windeployqt")
-execute_process(COMMAND windeployqt Cutter.exe
+execute_process(COMMAND windeployqt cutter.exe
--plugindir "qtplugins"
--no-translations # Cutter currently isn't loading Qt translation file
WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}
diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh
index 507cd72f..76687309 100755
--- a/docker/entrypoint.sh
+++ b/docker/entrypoint.sh
@@ -6,4 +6,4 @@ usermod -u $LOCAL_USER_ID $USERNAME
usermod -g $LOCAL_GROUP_ID $USERNAME
export HOME=/home/$USERNAME
-exec su-exec $USERNAME "/opt/cutter/build/Cutter" $@
+exec su-exec $USERNAME "/opt/cutter/build/cutter" $@
diff --git a/docs/source/building.rst b/docs/source/building.rst
index 0bdc9da9..c53a0bbc 100644
--- a/docs/source/building.rst
+++ b/docs/source/building.rst
@@ -101,7 +101,7 @@ You can now execute Cutter like this:
.. code:: sh
- ./build/Cutter
+ ./build/cutter
Building on Windows
@@ -249,9 +249,9 @@ containing bin/, lib/, include/, etc.) and specify it to CMake using
* **Rizin's librz_*.so cannot be found when running Cutter**
- ./Cutter: error while loading shared libraries: librz_lang.so: cannot open shared object file: No such file or directory
+ ./cutter: error while loading shared libraries: librz_lang.so: cannot open shared object file: No such file or directory
-The exact Rizin .so file that cannot be found may vary. On some systems, the linker by default uses RUNPATH instead of RPATH which is incompatible with the way Rizin is currently compiled. It results in some of the Rizin libraries not being found when running cutter. You can verify if this is the problem by running `ldd ./Cutter`. If all the Rizin libraries are missing you have a different problem.
+The exact Rizin .so file that cannot be found may vary. On some systems, the linker by default uses RUNPATH instead of RPATH which is incompatible with the way Rizin is currently compiled. It results in some of the Rizin libraries not being found when running cutter. You can verify if this is the problem by running `ldd ./cutter`. If all the Rizin libraries are missing you have a different problem.
The workaround is to either add the `--disable-new-dtags` linker flag when compiling Cutter or add the Rizin installation path to LD_LIBRARY_PATH environment variable.
::
diff --git a/scripts/breakpad_extract_symbols_appimage.py b/scripts/breakpad_extract_symbols_appimage.py
index 4ee271e9..edf2f7d3 100644
--- a/scripts/breakpad_extract_symbols_appimage.py
+++ b/scripts/breakpad_extract_symbols_appimage.py
@@ -44,7 +44,7 @@ def kill_appimage():
atexit.register(kill_appimage)
mount_dir = appimage_p.stdout.readline().strip().decode("utf-8")
-binaries = [ os.path.join(mount_dir, "usr/bin/Cutter") ]
+binaries = [ os.path.join(mount_dir, "usr/bin/cutter") ]
for f in os.scandir(os.path.join(mount_dir, "usr/lib")):
if f.is_dir() or f.is_symlink():
continue
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 88ef488b..97af55ce 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -425,6 +425,7 @@ endif()
add_executable(Cutter ${UI_FILES} ${QRC_FILES} ${PLATFORM_RESOURCES} ${SOURCES} ${HEADER_FILES} ${BINDINGS_SOURCE})
set_target_properties(Cutter PROPERTIES
+ OUTPUT_NAME cutter
RUNTIME_OUTPUT_DIRECTORY ..
PDB_OUTPUT_DIRECTORY ..
ENABLE_EXPORTS ON
@@ -548,7 +549,7 @@ endforeach()
if(UNIX AND NOT APPLE)
install (FILES "img/cutter.svg"
DESTINATION "share/icons/hicolor/scalable/apps/")
- install(FILES "org.rizin.Cutter.desktop"
+ install(FILES "re.rizin.cutter.desktop"
DESTINATION "share/applications"
COMPONENT Devel)
endif()
diff --git a/src/plugins/CutterPlugin.h b/src/plugins/CutterPlugin.h
index 1b550129..dbbe8d47 100644
--- a/src/plugins/CutterPlugin.h
+++ b/src/plugins/CutterPlugin.h
@@ -47,7 +47,7 @@ public:
virtual QString getVersion() const = 0;
};
-#define CutterPlugin_iid "org.rizin.cutter.plugins.CutterPlugin"
+#define CutterPlugin_iid "re.rizin.cutter.plugins.CutterPlugin"
Q_DECLARE_INTERFACE(CutterPlugin, CutterPlugin_iid)
diff --git a/src/plugins/sample-cpp/CutterSamplePlugin.h b/src/plugins/sample-cpp/CutterSamplePlugin.h
index 114769b9..45cbaedb 100644
--- a/src/plugins/sample-cpp/CutterSamplePlugin.h
+++ b/src/plugins/sample-cpp/CutterSamplePlugin.h
@@ -8,7 +8,7 @@
class CutterSamplePlugin : public QObject, CutterPlugin
{
Q_OBJECT
- Q_PLUGIN_METADATA(IID "org.rizin.cutter.plugins.CutterPlugin")
+ Q_PLUGIN_METADATA(IID "re.rizin.cutter.plugins.CutterPlugin")
Q_INTERFACES(CutterPlugin)
public:
diff --git a/src/org.rizin.Cutter.appdata.xml b/src/re.rizin.cutter.appdata.xml
similarity index 95%
rename from src/org.rizin.Cutter.appdata.xml
rename to src/re.rizin.cutter.appdata.xml
index 793b4c74..0aa8220a 100644
--- a/src/org.rizin.Cutter.appdata.xml
+++ b/src/re.rizin.cutter.appdata.xml
@@ -1,6 +1,6 @@